tobx
tobx
Do you have any information about garbage collection? Creating many objects led to animation hickups when the garbage collector stepped in in older browser versions. Of course we could also...
Agreed, but I was asking if "garbage collection of objects is as free as the allocation of those in **modern browsers**". The fact that allocation is faster does not imply...
I made a very simple benchmark that shows 2 things: 1. @mreinstein Objects seem to be faster than arrays (google `hidden classes` to understand why). I have not tried Float64Array...
I also want to point out that there is a similar discussion for three.js's vector math. It explains for example why `Float64Array` should be faster than `Float32Array` in JavaScript: https://github.com/mrdoob/three.js/issues/8661#issuecomment-501603693
@mreinstein > * having a single class and a single array that stores the input data is not a very realistic usage example. > * this benchmarks only **writing** operations....
I made the benchmark as proposed by @mreinstein: https://jsben.ch/vIcnR At my system reusing Objects is still the fastest after multiple runs, but the difference is less. In this version every...
Array reading is slightly faster in Chrome, but slower in Firefox (macOS): https://jsben.ch/9qQua More interestingly (for me), Object allocation is slightly faster than Array allocation (Chrome & Firefox): https://jsben.ch/J54f7 EDIT:...
I guess this is related to #1616. If so, I am happy to close this one.
@GranMinigun Yes, the WIP solves the issue for me.
@xwmx Saw this yesterday, studied the complete docs today, ordering my chaos tomorrow, being productive forever :hatching_chick: TL;DR Outstanding, thank you.