-[WebHTMLView close] calls [NSNotificationCenter removeObserver:self], which is measurably slower than calling the flavor of removeObserver: that takes a specific notification. Also, removeObserver: is called when the view is removed from the window as well as when the view is closed, resulting in NSNotificationCenter looking through its tables of observer/notification pairs twice for the same pair.
Created attachment 27225 [details] Patch to use removeObserver efficiently
Comment on attachment 27225 [details] Patch to use removeObserver efficiently r=me
Committed revision 40468