Open JonDum opened 6 years ago
Hi @JonDum!. I would be happy to accept PRs. I don't have a lot of time to work on this right now myself, but I promise to be responsive with review!
As far as this issue and #8, I appreciate the bug reports and have no doubt that there are issues here.
I'll be on the lookout for PRs! :)
I'm noticing pretty bad GC sweeps every few seconds using a dozen or so springs.
I think the majority of this is coming from the object/closure oriented way springs are updated via
updateConfig
.https://github.com/skevy/wobble/blob/develop/src/index.ts#L152-L175
For reference, this SO answer details pretty nicely all the things that are going to allocate memory in js
I haven't looked too closely at
_advanceSpringToTime
yet, but I don't see any major culprits at first glance.I like the minimalism of wobble and I'd like to submit some PRs if you want to discuss alternative syntax here first to avoid the
{}
's.