How to make a quick file search in C in Windows?

Do a search using FindFirstFile/FindNextFile and directory with all attachments, complete in 5 minutes.
The command Ctrl+L in Total Commander (getting information about directories) is performed in less than 10 seconds. But in the final information is the size of all files. ie crawls, but much faster.
How to make a fast implementation?
April 19th 20 at 12:17
3 answers
April 19th 20 at 12:19
I think you should start with hupotuposis quick search of files in winapi
and to further complicate the queries that would come to goal. in addition algoritmists graphs/trees, there is still a file system that already knows almost everything that we need
check out this publication
https://habr.com/ru/post/144712/
as a sign of the direction of search. he was not digging, no need for that and do not give specific recommendations on WinApi
Thanks for the link to the article, just was looking for her. Remember that something such was, but I could not find - myrtle.Lebsack commented on April 19th 20 at 12:22
@myrtle.Lebsack, good luck )) - reece.Watsi commented on April 19th 20 at 12:25
April 19th 20 at 12:21
Study the graph traversal algorithms
What does the graphs if directories and files is a tree? - myrtle.Lebsack commented on April 19th 20 at 12:24
@myrtle.Lebsack, a tree is a special case of the graph - reece.Watsi commented on April 19th 20 at 12:27
@myrtle.Lebsack, a Tree so it is a special case of the graph. - Ruben28 commented on April 19th 20 at 12:30
@myrtle.Lebsack, the tree is also a graph. A connected acyclic graph. - adolphus_Han commented on April 19th 20 at 12:33
Okay, let graph.

How wrong to circumvent the list of files and directories? Precisely how need to bypass the correct files and directories to the scanning speed of the files so risen? - myrtle.Lebsack commented on April 19th 20 at 12:36
@Ruben28, )) .. shron.. and in the process, not the first. is that the first almost word for word and time? ))) - reece.Watsi commented on April 19th 20 at 12:39
April 19th 20 at 12:23
proceniti all the names to load into a suitable database with all indexes and bistropole.
to monitor changes in USN and update the info in the database.
to search the database. and after search to go directly to the file.

you case is not tile case ??
you case is not tile case ??
no. I have a backup. Scanning locally compared to remote. - myrtle.Lebsack commented on April 19th 20 at 12:26
@myrtle.Lebsack, the comparison is as I understand it via Samba, it is the shared packs Windows ??
then oops - gino_Cron commented on April 19th 20 at 12:29

Find more questions by tags WindowsCAPI