diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-11 16:17:01 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-12 13:22:02 -0300 |
| commit | 1f388721fcc8d89026c9c3b235c33bd511646885 (patch) | |
| tree | 681ee1c6c19aac5e09961e211ad3226534e43e7b | |
| parent | 7dd447b7c8a21187af4fabade2111a0016e4b3a3 (diff) | |
| download | sketchbook-1f388721fcc8d89026c9c3b235c33bd511646885.tar.gz sketchbook-1f388721fcc8d89026c9c3b235c33bd511646885.zip | |
text: a larger cache for shaped runs
A dense map of a program's whole state draws thousands of runs a frame:
512 entries and 16 MB thrashed, and a frame took half a second.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa
| -rw-r--r-- | vendor/text.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/text.c b/vendor/text.c index 26297e4..8b2a54e 100644 --- a/vendor/text.c +++ b/vendor/text.c @@ -14,8 +14,8 @@ #include <stdlib.h> #include <string.h> -#define CACHE_ENTRIES 512 -#define CACHE_BYTES (16 * 1024 * 1024) +#define CACHE_ENTRIES 4096 +#define CACHE_BYTES (128 * 1024 * 1024) #define CACHE_PROPERTY "sketchbook.native-text" /* The Go family, bundled: one file a face, in `SkTextFace` order. */ static const unsigned char go_mono[] = { |
