Revert "Preallocate memory for image/file presence caches"
This reverts commita3ef80853c
. Vector reallocation cost is logarithmic. Assuming that a vector starts at a size of one and doubles its size in each allocation, the result is 11 allocations - completely negligible compared with, you know, loading 20 000 images from disk. (cherry-picked from commit1066de1a82
)
This commit is contained in:
parent
6265087354
commit
a553d5baac
1 changed files with 0 additions and 1 deletions
|
@ -106,7 +106,6 @@ public:
|
|||
cache_type()
|
||||
: content_()
|
||||
{
|
||||
content_.reserve(20000);
|
||||
}
|
||||
|
||||
cache_item<T>& get_element(int index)
|
||||
|
|
Loading…
Add table
Reference in a new issue