chore: optimize resource usage (#162)
* avoid string allocation * cache image * . * . * . * fix
This commit is contained in:
@@ -194,7 +194,7 @@ impl Root {
|
||||
}
|
||||
}
|
||||
|
||||
// Render Notification layer.
|
||||
/// Render Notification layer.
|
||||
pub fn render_notification_layer(
|
||||
window: &mut Window,
|
||||
cx: &mut App,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use std::ops::Range;
|
||||
use std::sync::Arc;
|
||||
|
||||
use common::display::ReadableProfile;
|
||||
use common::display::RenderedProfile;
|
||||
use gpui::{
|
||||
AnyElement, AnyView, App, ElementId, HighlightStyle, InteractiveText, IntoElement,
|
||||
SharedString, StyledText, UnderlineStyle, Window,
|
||||
|
||||
Reference in New Issue
Block a user