mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
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:
@@ -2276,7 +2276,7 @@ void SharedBuffer::destroy_if_unused()
|
||||
void Process::disown_all_shared_buffers()
|
||||
{
|
||||
LOCKER(shared_buffers().lock());
|
||||
Vector<SharedBuffer*> buffers_to_disown;
|
||||
Vector<SharedBuffer*, 32> buffers_to_disown;
|
||||
for (auto& it : shared_buffers().resource())
|
||||
buffers_to_disown.append(it.value.ptr());
|
||||
for (auto* shared_buffer : buffers_to_disown)
|
||||
|
||||
Reference in New Issue
Block a user