canvas-engines-comparison icon indicating copy to clipboard operation
canvas-engines-comparison copied to clipboard

Fixes array reinitialization

Open danicruz0415 opened this issue 1 month ago • 0 comments

this.rects is an array, as set up in the constructor in line 10. I think this is a mistake. Instead of something like this: rects = [{object}, {object}, ...] this is creating something like this: {0: {object}, 1: {object}, ...}. I don't know if this can affect performance in any noticiable way but I think it may be worth changing.

BTW Thanks for the repo!

danicruz0415 avatar Jan 20 '25 02:01 danicruz0415