Closed Bug 1775125 Opened 2 years ago Closed 2 years ago

FlattenedPath::ComputePointAtLength makes a duplicated call to hypotf()

Categories

(Core :: Graphics, defect)

defect

Tracking

()

RESOLVED FIXED
103 Branch
Tracking Status
firefox103 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

References

Details

Attachments

(1 file)

Looking at profiles in bug 1775033, I noticed that hypotf() called from FlattenedPath::ComputePointAtLength shows as being quite hot. We actually call it twice there with the same arguments, which is redundant; better to re-use the result of the first call.

Local profiling suggests this may make a small but just-about-measurable improvement here.

Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/907374b5fc3c
Avoid duplicate call to hypotf() in FlattenedPath::ComputePointAtLength. r=gfx-reviewers,jrmuizel,lsalzman
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: