Get rid of UNSUBSCRIBE_EXCEPTION
adamvy-google opened this issue · 3 comments
adamvy-google commented
Use some programatic means of unsubscribing.
kgrgreer commented
Pass subscription or subscription destructor as extra argument to listeners so that they can easily unsubscribe without throwing an Exception. Will avoid the use of non-error Exceptions and will be faster because try/catch blocks disable V8 JIT.
bshepherdson commented
Isn't it only finally
that destroys optimizations? In any case, we should do this.
kgrgreer commented
No, try/catch is sufficient: http://www.html5rocks.com/en/tutorials/speed/v8/