mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-04 10:12:47 +00:00
5f8417249c
- Returning `IntoElement` because it's more universal than `Element` and allows us to easily return components. - Using `impl IntoElement` in `RenderOnce` for consistency, which requires `Component` to allocate an `AnyElement`. We use a bump allocated arena anyway for these, and my benchmark doesn't show an impact. ![frame-time-histogram](https://github.com/zed-industries/zed/assets/1789/d3889cca-9ebc-4d72-aa68-34a5be3bad3c) In this histogram, frames-0 is this PR, frames-1 is main. Release Notes: - N/A |
||
---|---|---|
.. | ||
buffer_search.rs | ||
history.rs | ||
mode.rs | ||
project_search.rs | ||
search.rs | ||
search_bar.rs |