mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 04:37:55 +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:
@@ -193,7 +193,7 @@ void ProcessModel::update()
|
||||
}
|
||||
|
||||
m_pids.clear();
|
||||
Vector<pid_t> pids_to_remove;
|
||||
Vector<pid_t, 16> pids_to_remove;
|
||||
for (auto& it : m_processes) {
|
||||
if (!live_pids.contains(it.key)) {
|
||||
pids_to_remove.append(it.key);
|
||||
|
||||
Reference in New Issue
Block a user