SCUA 0.48.0 is another speed release. There is no new syntax and nothing to change in your code.
#What is faster
- Tables with many named fields. A table built by a literal or by
t.name = valuekeeps its fast layout up to 64 fields. It used to slow down at seventeen. - Looking things up in a hot loop, by name (
t[k]) or by number (t[id]on a table used as a map). These loops are now compiled by the JIT. - Building large text. Appending to a long string,
join,replace, file reads and pages built from templates all gain. - Hot
forloops that call small functions, which run up to twice as fast. - Reading a field by name from a table that came from
json.parse.
#Before you upgrade
Data saved by 0.48.0 should not be loaded by an older version. A saved partition, snapshot or hibernated session written by this release can hold long text in a form that 0.47.0 and earlier misread. Data saved by earlier versions loads in 0.48.0 as before. If you may need to go back a version, keep the saves you made before upgrading.
The changelog lists everything in 0.48.0, with the numbers for each change.