Closed Bug 1815273 Opened 2 years ago Closed 2 years ago

WidgetEvent::Duplicate triggers extra TimeStamp::Now() call

Categories

(Core :: DOM: Events, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: smaug, Assigned: smaug)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Whiteboard: [sp3])

Attachments

(1 file)

Unless I'm missing something
https://searchfox.org/mozilla-central/rev/ddbeacddc15008936e8f619c8c3a05fac6eab8d8/widget/BasicEvents.h#549,552 calls constructor which will initialize timestamp, but that value will be then overridden in https://searchfox.org/mozilla-central/rev/ddbeacddc15008936e8f619c8c3a05fac6eab8d8/widget/BasicEvents.h#553
Calling TimeStamp::Now() is particularly slow on linux

Yeah, there should be a constructor which does not initialize the timestamp.

Or need to pass optional argument around

Assignee: nobody → smaug
Attachment #9347767 - Attachment description: WIP: Bug 1815273 - WidgetEvent::Duplicate triggers extra TimeStamp::Now() call, r=masayuki → Bug 1815273 - WidgetEvent::Duplicate triggers extra TimeStamp::Now() call, r=masayuki
Pushed by opettay@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a88b93419ed9 WidgetEvent::Duplicate triggers extra TimeStamp::Now() call, r=masayuki
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
Whiteboard: [sp3]
Depends on: 1903699
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: