summaryrefslogtreecommitdiffstats
path: root/examples/widgets/tutorials/notepad
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2024-02-05 16:01:19 +0200
committerAhmad Samir <a.samirh78@gmail.com>2024-02-29 16:35:57 +0200
commit5e9de279ac06f727aadf5dbfbce74d117ff00d28 (patch)
tree77dedb5c245f3da91173fdba4f0e63f037541691 /examples/widgets/tutorials/notepad
parentc39a0d1e8956e042139ce3065681e4c5d07412f3 (diff)
tst_bench_qdiriterator: add benchmark for QDirListing
Make the benchmarks more comparable: - Store the QDir::Filters in one central var, this way it's the same in all the call sites - Add a `bool forceStat`, when true force calling stat(), either explicitly in posix_helper(), or implicitly in Qt classes by e.g. calling a QFileInfo method that would have to call system stat() internally. Otherwise benchmarking readdir()/dirent showed bigger times, which was mostly due to the explicit stat() calls, whereas we can use dirent::d_type (on the platforms where it's available) Drive by change: for std::filesystem::recursive_directory_iterator, set skip_permission_denied option and use the non-throwing constructor. Change-Id: Icf138a5dc41d32741c1be611d664b01008b2f3fe Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'examples/widgets/tutorials/notepad')
0 files changed, 0 insertions, 0 deletions