ZIm/crates/project
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
..
src project: Use VecDeque in SearchHistory (#31224) 2025-05-23 14:25:40 +03:00
Cargo.toml context_store: Refactor state management (#29910) 2025-05-05 21:36:12 +02:00
LICENSE-GPL chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00