You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the presence of try/catch statements in your blur functions is affecting performance. After removing the try/catch, I saw a 2.5x speedup blurring a 1000x1000 image using stack blur in Chrome (version 32). Other browsers had smaller improvements.
Apparently functions containing try/catch statements will run in unoptimized mode in Chrome and other browsers, which even affects the performance of code outside the try block. (e.g. http://jsperf.com/213123123901230291)
Putting the blur calculations into separate functions should fix this.
The text was updated successfully, but these errors were encountered:
It looks like the presence of try/catch statements in your blur functions is affecting performance. After removing the try/catch, I saw a 2.5x speedup blurring a 1000x1000 image using stack blur in Chrome (version 32). Other browsers had smaller improvements.
Apparently functions containing try/catch statements will run in unoptimized mode in Chrome and other browsers, which even affects the performance of code outside the try block. (e.g. http://jsperf.com/213123123901230291)
Putting the blur calculations into separate functions should fix this.
The text was updated successfully, but these errors were encountered: