ludic.ui: negative numbers' texts made once per value like the positive ones, big ones kept by value in a ring of 16 (mm_int made a string per call for every coordinate), and a stylesheet without a comment is not copied to strip one

Found by the windowed walk's exit scan (mm_int 1.2 MB, lss_strip 451 KB unreachable).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-28 22:34:19 +03:00
parent 2603a79cc4
commit b30711877d
3 changed files with 40 additions and 1 deletions

View file

@ -39,6 +39,10 @@ export state UiState {
uv_false: Val = null
mm: UiMemo = null # memo.ludic: splits, gradients and keys by their text
mm_ints: []string = null
mm_negs: []string = new []string # memo_join.ludic: negative numbers' texts, and the last big ones
mm_big_v: []int = new []int
mm_big_s: []string = new []string
mm_big_at: int = 0
fc_none: Val = Value.null() # focus.ludic: the value a key's down and up carry, made once
mm_ivals: []Val = null
ev_depth: int = 0 # eval.ludic: a call's arguments, in lists kept one a depth