R0j0, how are you profiling the chipmunk performance? I'm quite a newcomer to Chipmunk, but I've been trying to understand its structure... so I ran a test on IE and Chome, and started investigating what could be the reason behind slowdowns... for me the most time is spent on BBTree.prototype.reindexQuery - it feels like almost an infinite nested loop - each prototype.markSubtree contains another prototype.markSubtree inside.
The tree becomes so nested that it's impossible to show on a screenshot. I'll include few screenshots (on the second screenshot you can see there's some anon_func happening under the Leaf.prototype.markSubtree):
*EDIT* too little rep to post urls, I hope this works:
In my experience, the runtimes spent on individual Node/Leaf .prototype.markSubtree and Node/Leaf .prototype.markLeafQuery are growing as they nest. Could BBTree.prototype.reindexQuery be the source of the memory leak?