Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Javascript performance   (RSS)
Sorry, but there are no more tags available to filter with.

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