Files
ladybird/AK
Andreas Kling a141c2c492 LibWeb+AK: Use AK::Queue for the microtask queue
The microtask queue is a pure FIFO (enqueue at back, dequeue from
front) but was using a Vector, making every dequeue O(n) due to
element shifting.

Replace it with AK::Queue which has O(1) dequeue. This makes a huge
difference when processing large numbers of microtasks, e.g. during
async-heavy JavaScript workloads where each `await` generates a
microtask.

Also add a for_each() method to AK::Queue so the GC can visit the
queued tasks.
2026-03-16 09:38:20 +01:00
..
2025-11-20 15:44:25 +01:00
2024-12-04 16:45:58 +00:00
2024-11-20 21:13:23 +01:00
2026-02-17 12:38:51 +00:00
2026-01-29 10:10:12 +01:00
2026-02-17 12:38:51 +00:00
2024-11-19 22:07:01 -07:00
2024-11-10 14:48:20 -07:00
2026-02-21 19:27:35 +01:00
2024-12-28 05:39:32 -08:00
2025-08-23 16:04:36 -06:00
2022-12-03 23:52:23 +00:00
2026-02-18 08:02:45 -05:00
2024-02-11 18:53:00 +01:00
2025-08-26 15:20:33 +02:00
2026-02-17 10:48:09 -05:00