From ba7161d6a3156a966c21ea3e06168bdac9803819 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 28 Jun 2025 14:18:59 -0400 Subject: Greatly increase the maximum free space allocated when growing lists (from 63 -> 281,474,976,710,655) to fix degenerate performance when appending to large lists. --- src/stdlib/text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stdlib/text.c') diff --git a/src/stdlib/text.c b/src/stdlib/text.c index 9dedccdd..0f3f9519 100644 --- a/src/stdlib/text.c +++ b/src/stdlib/text.c @@ -1477,7 +1477,7 @@ public List_t Text$utf32_codepoints(Text_t text) public List_t Text$utf8_bytes(Text_t text) { const char *str = Text$as_c_string(text); - return (List_t){.length=strlen(str), .stride=1, .atomic=1, .data=(void*)str}; + return (List_t){.length=(int64_t)strlen(str), .stride=1, .atomic=1, .data=(void*)str}; } static INLINE const char *codepoint_name(ucs4_t c) -- cgit v1.2.3