News for hackers. Stuff that matters.
Re:Introducing Sugarless - A Functional & Context Oriented w... by NHQ on Wednesday December 21, 2011 @04:57PM (#3379336)
I don't like to play contrarian when the room is full of them ;), but I was just reading some slides from a conference about understanding various costs in javascript and how to optimize, and it was put forth that contextualizing with call() and apply() are quite costly, more costly than one or two "upward" context traversals in search of e.g. the "self" variable you created to point to the top context (var self = this). And arguments look-ups can be costly as well. I can't find the damn slides or website now tho, sry.

There are no comments on this comment yet.