this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

grapheme_cache: increase cache size

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>

+4 -4
+4 -4
src/GraphemeCache.zig
··· 3 3 4 4 const GraphemeCache = @This(); 5 5 6 - /// the underlying storage for graphemes 7 - buf: [1024 * 4]u8 = undefined, 6 + /// the underlying storage for graphemes. Right now 8kb 7 + buf: [1024 * 8]u8 = undefined, 8 8 9 9 // the start index of the next grapheme 10 10 idx: usize = 0, 11 11 12 - /// the cache of graphemes. This allows up to 1024 graphemes with 4 codepoints 12 + /// the cache of graphemes. This allows up to 2048 graphemes with 4 codepoints 13 13 /// each 14 - grapheme_buf: [1024]Grapheme = undefined, 14 + grapheme_buf: [1024 * 8 / 4]Grapheme = undefined, 15 15 16 16 // index of our next grapheme 17 17 g_idx: u21 = 0,