Closed Bug 501428 Opened 15 years ago Closed 15 years ago

Optimize CalcBezier

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jrmuizel, Assigned: jrmuizel)

Details

Attachments

(1 file)

I was looking through the SMIL code and saw an inefficient implementation of CalcBezier(). This patch eliminates the call to pow() and reduces the number of multiplications from 4 to 3.
Attachment #386067 - Flags: review?(dholbert)
Attachment #386067 - Flags: review?(dholbert) → review+
Comment on attachment 386067 [details] [diff] [review]
Optimize nsSMILKeySpline::CalcBezier

Looks like you're just factoring out some "aT" multiplicands, to reduce the total number of multiplications -- looks good to me.

(You may also need review from an SVG peer, though -- jwatt, longsonr, or roc)
Attachment #386067 - Flags: review?(jwatt)
Attachment #386067 - Flags: review?(jwatt) → review?(longsonr)
Attachment #386067 - Flags: review?(longsonr) → review+
Assignee: nobody → jmuizelaar
Jeff landed this bug's patch earlier today.  Resolving.
http://hg.mozilla.org/mozilla-central/rev/585d2a1d511c
OS: Mac OS X → All
Hardware: x86 → All
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: