Faster file iterator?

I've got a directory with INI files that I need to scan (for later loading into a list/selection by user), I have to load a value out of each one to check version and the like.

I tried turning off logging of those actions, which seemed to help a bit.  I'm wondering if  there is a faster way to iterate files? 

I haven't tried using a filelist yet, are those faster than using a file iterator setup to iterate a file spec?

Thanks.

Hi Tracey,

Thanks for your post. Approximately how many files are you iterating, and how slow is it?

Performance of these kind of “tight loop” operations is something we’re optimizing very heavily for the next major version of FB. There are still limitations though - in particular, FB has to call the Windows API to open the INI file and scan it for the correct value(s).

If you have “Live Logging” turned on, turning it off will give a substantial performance boost.

Regards,

Angus

One other thing is to run the project from the command line - it gives a 2x speedup on most operations and I think a bit more on file iterations (we run through over 100 files and it’s nice and quick from the FB command line).

I use a batch file that contains these two lines:
“C:\Program Files\FinalBuilder 5\FBCMD.exe” “build-all.fbp5”
pause
The pause lets me see easily whether the build succeeded.