improve performance of scanner 29/274329/4 accepted/tizen/unified/20220501.223626 submit/tizen/20220428.022151
authorchengyj1985 <yujie.cheng@samsung.com>
Tue, 26 Apr 2022 09:13:44 +0000 (17:13 +0800)
committerchengyj1985 <yujie.cheng@samsung.com>
Wed, 27 Apr 2022 02:43:09 +0000 (10:43 +0800)
commitd38c0ce956461c6e0db0c71b4cee41ff66b9ae0c
treeb1cc59d0af8e9bda74a21d08a7ab3faa3579f9c0
parent364f826b98621087bb5de99c673225a0a8a95b80
improve performance of scanner

1.remove g_file_test, it use too much time. Use readdir64 to get name and type.
2.reduce frequency of sleep.

Change-Id: I2bdd3529e1f465a7b9c099403f32b42ac2fc1977
src/scanner-v2/include/media-scanner-common-v2.h
src/scanner-v2/media-scanner-scan-v2.c