Json.parse decodes an escaped string in one pass into one buffer - joined a character at a time, every shorter copy was kept, and a long escaped text took gigabytes (ui-preview: 6.5 GB in 3 s); protocol-v1.md states the @import path rule and the key a file override answers to
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ea51307eaa
commit
4fb1dc0ddc
3 changed files with 64 additions and 30 deletions
6
changes/json-escape-linear.md
Normal file
6
changes/json-escape-linear.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
bump: patch
|
||||
type: fix
|
||||
**`Json.parse` decodes an escaped string in one pass.** A string with escapes in it was joined a character
|
||||
at a time, and every shorter copy was kept: a long escaped text took gigabytes (ui-preview's story model
|
||||
reached 6.5 GB in three seconds). It is now decoded into one buffer sized from the text. ui-preview's
|
||||
protocol-v1.md states how an `@import` path is resolved and which key a `file` override answers to.
|
||||
Loading…
Add table
Add a link
Reference in a new issue