Re:Show HN: Snabbt.js – a minimalistic animation library
by yesimahuman on Friday January 02, 2015 @11:30AM
(#8827326)
Similarly, PhysicsJS employs a "scratchpad" of pre-initialized vectors for fast intermediate computations. That way you aren't constructing new objects, but grabbing a free one, zeroing it, and using it as you would before. Seems quite performant.
https://github.com/wellcaffeinated/PhysicsJS/blob/master/src...