Skip to content
Commit 63097eda authored by Milian Wolff's avatar Milian Wolff
Browse files

Add some benchmarks for bad performance when excluding large folders

When we open a project with a subfolder containing many files and
then chose to exclude that subfolder, we will get one
`fileRemovedFromSet` signal emission per contained file. Each one
of those will then do a lookup in the vector of project files,
which is potentially very slow.

Measurement on my machine:
```
RESULT : BenchIndexedString::bench_string_vector():"std::vector":
     285 msecs per iteration (total: 285, iterations: 1)
PASS   : BenchIndexedString::bench_string_vector(QVector)
RESULT : BenchIndexedString::bench_string_vector():"QVector":
     3 msecs per iteration (total: 3, iterations: 1)
```
parent 03497c05
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment