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