Azamat H. Hackimov
|
1a3c012228
|
Refactor cf_FindRealFileNameCaseInsensitive() function
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
```
|
2024-07-05 01:50:57 +03:00 |
|