Files
oak-gpui/crates
tidely c50093d68c project: Use VecDeque in SearchHistory (#31224)
`SearchHistory` internally enforced the max length of the search history
by popping elements from the front using `.remove(0)`. For a `Vec` this
is a `O(n)` operation. Use a `VecDeque` to make this `O(1)`

I also made it so the excess element is popped before the new one is
added, which keeps the allocation at the desired size.

Release Notes:

- N/A
2025-05-23 14:25:40 +03:00
..
2025-05-20 23:06:07 +00:00
2025-05-07 23:11:09 +03:00
2025-05-23 14:25:17 +03:00
2025-05-14 18:29:28 +02:00