perf: reuse rendered elements across repaints
Rust / build (macos-latest, stable) (push) Canceled after 0s
Rust / build (ubuntu-latest, stable) (push) Canceled after 0s
Rust / build (windows-latest, stable) (push) Canceled after 0s

This commit is contained in:
2026-11-25 05:00:06 +07:00
parent 3f64b36ff4
commit bf06d29c2e
21 changed files with 603 additions and 316 deletions
+4 -2
View File
@@ -1,3 +1,5 @@
use std::sync::Arc;
use gpui::{
AnyElement, App, AppContext as _, Context, Entity, IntoElement, ParentElement as _, Render,
SharedString, Styled as _, Window, div, px,
@@ -14,13 +16,13 @@ use utils::middle_truncate;
pub struct AboutDialog {
handle: DialogHandle,
announcement: Announcement,
announcement: Arc<Announcement>,
directory: Entity<ProfileDirectory>,
}
impl AboutDialog {
pub fn new(
announcement: Announcement,
announcement: Arc<Announcement>,
directory: Entity<ProfileDirectory>,
cx: &mut App,
) -> Entity<Self> {