Revert "Preallocate memory for image/file presence caches"
This reverts commit a3ef80853c
.
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.
This commit is contained in:
parent
949266b5aa
commit
1066de1a82
1 changed files with 0 additions and 1 deletions
|
@ -108,7 +108,6 @@ public:
|
|||
cache_type()
|
||||
: content_()
|
||||
{
|
||||
content_.reserve(20000);
|
||||
}
|
||||
|
||||
cache_item<T>& get_element(int index)
|
||||
|
|
Loading…
Add table
Reference in a new issue