Skip navigation.

Opera 90.1 Is OutAll recent postsIntricacies of Using Cache

On For Loops and Hoisting

Just read an extremely interesting post, An in depth look at for loops, by Greg Young about JIT optimizations of various loops and how code composition affects which optimization is chosen and when.

Worth pointing out is the section A Bit About Foreach. I love foreach loops but tend to use them with caution. Greg offers helpful comments about the pros and cons of using this language construct.

Comments

No comments yet

Emails and Notifications

Would you like to be notified when somebody responds to this post? 

TrackBacks

Sorry, TrackBacks are not allowed.

Submit your comment

Please enter only text since all HTML tags except hyperlinks will be stripped. Hyperlinks will become live links. Any comments with flaming or offensive language will be deleted. Be courteous to other posters. Thank you.

Your name (required):
Your email (optional):
Your site's URL (optional):
Enter this number
Type in the number above:
Comment (required):