Welcome to MSDN Blogs Sign in | Join | Help

February 2007 - Posts

Javascript prototype versus closure execution speed

When Javascript execution speed matters consider using prototype instead of closures where possible. Even for a small closure the difference can be noticable when called hundreds of times. Consider the following example that implements a Pixel object
Posted by Kristoffer | 3 Comments
 
Page view tracker