From 1f388721fcc8d89026c9c3b235c33bd511646885 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 11 Nov 2026 16:17:01 -0300 Subject: 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 Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa --- vendor/text.c | 4 ++-- 1 file 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 #include -#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[] = { -- cgit v1.3