Sprinkle use of AK::Vector in various places.

Some of these are less helpful than others. Avoiding a bunch of mallocs
in the event loop wakeup code is definitely nice.
This commit is contained in:
Andreas Kling 2019-04-20 14:02:19 +02:00
commit 5eedb22834
Notes: sideshowbarker 2024-07-19 14:38:44 +09:00
17 changed files with 53 additions and 50 deletions

View file

@ -26,6 +26,7 @@ int thumbnail_thread(void* model_ptr)
Vector<String> to_generate;
{
LOCKER(thumbnail_cache().lock());
to_generate.ensure_capacity(thumbnail_cache().resource().size());
for (auto& it : thumbnail_cache().resource()) {
if (it.value)
continue;