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:
Jeffrey C. Ollie
2025-09-05 12:04:28 -05:00
committed by GitHub
11 changed files with 296 additions and 27 deletions

View File

@@ -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;
}