sproutcore/sproutcore20 — Issue #192: effect of calls to sc_assert on IE performance
Author: robmonie
Created: 2011-10-31 11:16:07+00:00
State: open

We were getting a lot of long running script warnings in IE due largely to the very large number of calls to sc_assert throughout the framework. 500,000 or more calls to sc_assert was not uncommon in our application for a single event loop which is clearly too many times given that IE throws up the long running script warnings based on the number of operations rather than time spent.

We were able to dramatically reduce the number of times this function is called by removing it from SC.get, SC.set and SC.meta where it feels like it has limited value for ordinary usage of the framework. There are many other places were sc_assert is quite useful but it'd be great to see it removed from these functions considering it's impact on IE.