Closed Bug 632072 Opened 13 years ago Closed 11 years ago

Do not create new functions for every kinetic pan

Categories

(Firefox for Android Graveyard :: Panning/Zooming, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: stechz, Assigned: mbrubeck)

Details

(Keywords: perf)

Attachments

(3 files, 1 obsolete file)

Due to paranoia from bug 631951, I was worried that we may be compiling Javascript functions for every kinetic pan we were making when we turn methodjit on. It was faster to make a cleanup patch than asking anyone if this could be problematic. :)
Attachment #510307 - Flags: review?(mark.finkle)
Keywords: perf
Assignee: nobody → mbrubeck
Attached patch patch v2Splinter Review
This patch was badly bit-rotted.  This updates Ben's approach to work against the current code, and again prevent us from creating new objects or functions on each kinetic pan.
Attachment #510307 - Attachment is obsolete: true
Attachment #565128 - Flags: review?(mark.finkle)
Attachment #510307 - Flags: review?(mark.finkle)
Here's a "diff -w" output, to make it easier to separate the real changes from the indentation changes.
Comment on attachment 565128 [details] [diff] [review]
patch v2

The priginal worry was related to methodjit, which is off in chrome now. Inany case, this shouldn't hurt.
Attachment #565128 - Flags: review?(mark.finkle) → review+
Attached patch s/self/this/gSplinter Review
This mechanical patch removes the now-unnecessary "self" local and replaces it with "this" inside onBeforePaint.  I'll fold this into the main patch before pushing it; just keeping it separate for now to keep reviews easier.
(In reply to Mark Finkle (:mfinkle) from comment #4)
> The priginal worry was related to methodjit, which is off in chrome now.
> Inany case, this shouldn't hurt.

True, though this should at least reduce the amount of garbage collection we do.  It will also help if we manage to fix the methodjit memory usage enough to turn it back on.
https://hg.mozilla.org/integration/mozilla-inbound/rev/ac1d5e94097a Thanks Ben!
Status: NEW → ASSIGNED
Whiteboard: [pushed]
Target Milestone: --- → Firefox 10
https://hg.mozilla.org/mozilla-central/rev/ac1d5e94097a
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Backed out because this broke kinetic panning on repeated swipes:
https://hg.mozilla.org/mozilla-central/rev/737e0ebf68b2

I'll go back and see what I messed up...
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Whiteboard: [pushed]
Target Milestone: Firefox 10 → ---
This code is going away in favor of AsyncPanZoomController.
Status: REOPENED → RESOLVED
Closed: 13 years ago11 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: