diff --git a/src/terminal/kitty/graphics.zig b/src/terminal/kitty/graphics.zig index b4e06aeb8..cfc45adbc 100644 --- a/src/terminal/kitty/graphics.zig +++ b/src/terminal/kitty/graphics.zig @@ -7,6 +7,14 @@ //! - shared memory transmit //! - virtual placement w/ unicode //! - animation +//! +//! Performance: +//! The performance of this particular subsystem of Ghostty is not great. +//! We can avoid a lot more allocations, we can replace some C code (which +//! implicitly allocates) with native Zig, we can improve the data structures +//! to avoid repeated lookups, etc. I tried to avoid pessimization but my +//! aim to ship a v1 of this implementation came at some cost. I learned a lot +//! though and I think we can go back through and fix this up. pub usingnamespace @import("graphics_command.zig"); pub usingnamespace @import("graphics_exec.zig");