Just posted a Folder info sample to source code forum. Have found a
funny thing with FindFirstFile and recursive scanning. First time always
take longer time, then info is available in chache memory so subsequent
scans are much faster. Okay, nothing new there, but - MS Explorer seems
to by-pass this somehow. ???
I mean - restart Windows, open up MS Explorer, right-click on a folder
and select "properties", and files, sub-folders and sizes are calculated
at same speed my code does - when all is in chache, that is, after it has
been done once.
Maybe MS uses other, secret low-level way? Maybe Windows stores drive
info under secret search handle? Maybe that can explain why it takes
so long to restart Windows? (because it collects drive data while loading..?)
Just speculating, in case someone knows anything about it. Sure would
be fun to be able to do recursive file/folder scanning without that
first "slow" scan..
------------------
funny thing with FindFirstFile and recursive scanning. First time always
take longer time, then info is available in chache memory so subsequent
scans are much faster. Okay, nothing new there, but - MS Explorer seems
to by-pass this somehow. ???
I mean - restart Windows, open up MS Explorer, right-click on a folder
and select "properties", and files, sub-folders and sizes are calculated
at same speed my code does - when all is in chache, that is, after it has
been done once.
Maybe MS uses other, secret low-level way? Maybe Windows stores drive
info under secret search handle? Maybe that can explain why it takes
so long to restart Windows? (because it collects drive data while loading..?)
Just speculating, in case someone knows anything about it. Sure would
be fun to be able to do recursive file/folder scanning without that
first "slow" scan..

------------------
Comment