Woodring definitely deserves credit here. I took a somewhat different approach in my patches and added a few additional ideas of my own after some careful benchmarking, but Woodring's post made me realize I'd left significant low-hanging fruit in image.copy[] and image.paste[] (as well as a variety of places throughout Decker which rely on the same internal routines.) I think v1.72 will offer a significant boost to many existing projects.
Thanks to both of you for pushing the limits of the platform!
Done: https://codeberg.org/woodring/missooni.patternshop-cinnanom
Not directly related, but of note:
-
Added testing back to https://codeberg.org/woodring/decker.decker-xdc
-
It was stripped out before forking
lil.jsand it wasn’t needed it before, since it was the same as IJ’s -
Also, added three tests for comparing timing
tests/vector_stress.lil,tests/call_stress.lilandtests/dom/image_stress.jsand build a nodejsliltat the top level for the tests