compiler: a string slice is a fresh temporary too
s[a .. b] is always a copy, so it is freed once a +, a comparison or print has read it. Reseeded. string_temps.ludic adds a slice compared and a slice concatenated each round (960 KB over 20,000 before, 0 after) and a kept slice read after its +. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
174a32c285
commit
328dee77c8
5 changed files with 940 additions and 861 deletions
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue