mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-17 14:41:22 +00:00
renderer: add LUT-based implementation of isSymbol (#8528)
The LUT-based lookup gives a ~20%-30% speedup over the "naive" isSymbol implementation. <img width="1206" height="730" alt="Screenshot From 2025-09-04 22-45-10" src="https://github.com/user-attachments/assets/09a8ef3a-8b4b-43ba-963a-849338307251" /> <img width="1206" height="730" alt="Screenshot From 2025-09-04 22-41-54" src="https://github.com/user-attachments/assets/27962a88-f99c-446d-b986-30f526239ba3" /> Fixes #8523
This commit is contained in:
@@ -31,6 +31,7 @@ pub fn init(b: *std.Build, cfg: *const Config) !SharedDeps {
|
||||
.metallib = undefined,
|
||||
};
|
||||
try result.initTarget(b, cfg.target);
|
||||
if (cfg.emit_unicode_table_gen) result.unicode_tables.install(b);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user