mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 19:55:23 +00:00
1a3c012228
Implementing cf_FindRealFileNameCaseInsensitive_new() based on std::fs::directory_iterator, which runs faster and more reliable. cf_FindRealFileNameCaseInsensitive_new() works exactly as cf_FindRealFileNameCaseInsensitive(). Benchmark on Release build: ``` ------------------------------------------------------------------- Benchmark Time CPU Iterations ------------------------------------------------------------------- cfile_no_exist_old 11607 ns 11399 ns 63035 cfile_no_exist_new 9302 ns 9196 ns 70041 cfile_exist_relative_old 2701 ns 2480 ns 282695 cfile_exist_relative_new 867 ns 866 ns 798478 cfile_exist_absolute_old 3415 ns 3167 ns 228323 cfile_exist_absolute_new 1182 ns 1181 ns 574782 ``` |
||
---|---|---|
.. | ||
TestDir | ||
cfile_tests.cpp | ||
CMakeLists.txt |