Don't run unnecessary for loops to map columns, rows etc. if those parameters weren't specified.
Make sure to disable whitespace changes when viewing the diff.
Seems to save about 10% compilation time (300 ms on unreleased Typst 0.11.0) on the test document.
Also adds some tiny extra checks regarding the length of arrays returned by map-rows and map-cols.
Don't run unnecessary
for
loops to map columns, rows etc. if those parameters weren't specified. Make sure to disable whitespace changes when viewing the diff.Seems to save about 10% compilation time (300 ms on unreleased Typst 0.11.0) on the test document.
Also adds some tiny extra checks regarding the length of arrays returned by
map-rows
andmap-cols
.