ZIm/crates/indexed_docs/src
tidely 4b5158b168
indexed_docs: Remove some unnecessary cloning (#30236)
Other small patch to reduce allocations.

`.iter().cloned().collect()` calls `Clone` per element, whereas
`.into_iter().collect()` preallocates the `Vec`.

The Zed repo for example has up to 1700 packages on some build
configurations, meaning this change theoretically saves up to 1699
allocations. It's likely the compiler has already optimized this away,
but it's good to be explicit.

Release Notes:

- N/A
2025-05-08 10:59:56 +00:00
..
providers indexed_docs: Remove some unnecessary cloning (#30236) 2025-05-08 10:59:56 +00:00
extension_indexed_docs_provider.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
indexed_docs.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
providers.rs Start work on genericizing /rustdoc (#13745) 2024-07-02 13:14:56 -04:00
registry.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
store.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00