Preallocate memory for image/file presence caches
Should avoid unnecessary reallocations.
This commit is contained in:
parent
787bf47225
commit
a3ef80853c
1 changed files with 1 additions and 0 deletions
|
@ -106,6 +106,7 @@ public:
|
|||
cache_type()
|
||||
: content_()
|
||||
{
|
||||
content_.reserve(20000);
|
||||
}
|
||||
|
||||
cache_item<T>& get_element(int index)
|
||||
|
|
Loading…
Add table
Reference in a new issue