I\'m writing some javascript code which needs to run fast, and uses a lot of short-lived objects. Am I better off using an object pool, or just creating objects as I need them?<
Object pooling may help, especially if you are churning through a lot of objects. I recently wrote an article on this very subject which might be worth a read.