Rollo62 560 Posted 7 hours ago Hi there, via WholeTomato https://www.wholetomato.com/blog/2024/11/14/how-to-query-file-attributes-50x-faster-on-windows/?utm_source=Eloqua&utm_medium=email&utm_content=Article-250314-WT-50xfaster 1 1 Share this post Link to post
Anders Melander 1934 Posted 6 hours ago Interesting but... TLDR; the "50x faster" only applies if: You are using the C++17 std::filesystem now. You are using GetFileAttributesEx now to get the attributes. In IOUtils the TFile.GetSize function is the only one using GetFileAttributes* directly. Unfortunately IOUtils defers to SysUtils for many of its function and there's widespread use of GetFileAttributes* in there. Interestingly SysUtils contains an internal GetFileAttributesExEmulated function that is implemented using FindFirstFile but unfortunately that is only used from the FileAge functions and only in case of a sharing violation. 2 Share this post Link to post