Closed Bug 1229032 Opened 10 years ago Closed 10 years ago

don't copy arrays in PerformanceObserver::Observe

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla45
Tracking Status
firefox45 --- fixed

People

(Reporter: froydnj, Assigned: froydnj)

Details

Attachments

(1 file)

Once we've sanitized the input data, there's no need to copy our newly-allocated array into mEntryTypes; we can simply swap them and avoid extra allocations.
Attachment #8693599 - Flags: review?(amarchesini)
Attachment #8693599 - Flags: review?(amarchesini) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: