Poor performance in ClearClickHandler#rapidFire.check

Bug reports and enhancement requests
Post Reply
Ventero
Posts: 2
Joined: Tue Jun 04, 2013 6:53 pm

Poor performance in ClearClickHandler#rapidFire.check

Post by Ventero »

Steps to reproduce:

1. Go to http://dump.ventero.de/xkcd1110/open.html
2. Open Firefox dev tools and start profiling
3. Scroll your mousewheel (rapidly - the faster you scroll the more noticable the effect is) for a few seconds to zoom in and out on different spots
4. Stop profiling

Result: approximately 30% of the runtime is spent in ClearClickHandler's rapidFire.check, leading to poor performance of the application itself.

This was tested with NoScript 2.6.6.3rc1 in Firefox 22, the site is marked as trusted and ClearClick protection is disabled on trusted sites.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0
User avatar
Giorgio Maone
Site Admin
Posts: 9530
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Poor performance in ClearClickHandler#rapidFire.check

Post by Giorgio Maone »

Investigating, thank you.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0
User avatar
Giorgio Maone
Site Admin
Posts: 9530
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Poor performance in ClearClickHandler#rapidFire.check

Post by Giorgio Maone »

Uhm, I get 0.5% spent in rapidFire.check, even though I could imagine some problem may actually happen since lots of mouseover events are generated automatically (in facts, 3.2% of the time is spent in onMouseOver@openseadragon.js:2781).
Notice I'm testing on Nightly (24), so either you've got some other add-on interfering (did you try on a clean profile) or Mozilla fixed (or introduced?) some event dispatch bug in the meanwhile.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0
Ventero
Posts: 2
Joined: Tue Jun 04, 2013 6:53 pm

Re: Poor performance in ClearClickHandler#rapidFire.check

Post by Ventero »

I'm still able to reproduce this with a clean profile in FF22. In FF24, I'm only able to reproduce about 7% of time spent in rapidFire.check - while this is much better, it's still not ideal, especially because ClearClick protection is disabled on trusted sites. However, as this doesn't affect the application's performance anymore, consider this a "request for enhancement" instead of a bug ;)
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0
Post Reply