Relearning JavaScript

Just got done watching video from Velocity 2011. The Best of Velocity – Know Your Engines: How to Make Your JavaScript Fast

Not a lot has changed in the realm of byte code run-time optimizations in the last ten years.

Things that can help the optimizer:

  1. Type invariance of arrays
  2. Non-sparse arrays
  3. Don’t use ‘eval’ or ‘with’ anywhere (and especially near your speed-sensitive code).
  4. Be aware of where you want optimal performance.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s