Closed Bug 1189664 Opened 9 years ago Closed 9 years ago

Take a fast shortcut when searching for BreakpointActors and the map is empty

Categories

(DevTools :: Debugger, defect)

defect
Not set
normal

Tracking

(firefox42 fixed)

RESOLVED FIXED
Firefox 42
Tracking Status
firefox42 --- fixed

People

(Reporter: fitzgen, Assigned: fitzgen)

Details

Attachments

(1 file, 2 obsolete files)

      No description provided.
Assignee: nobody → nfitzgerald
Status: NEW → ASSIGNED
Attachment #8641567 - Flags: review?(ttromey)
Attachment #8641574 - Flags: review?(ttromey)
I remember removing this code because it seemed like a pointless micro-optimization. I am amazed that it actually makes so big a difference. Any theories as to why?
My theory is that generators are very slow... I think they still don't even make it into Ion.

But yeah, not really sure what was up but this saved a couple hundred ms of jank.
Comment on attachment 8641772 [details] [diff] [review]
Take a fast shortcut when searching for BreakpointActors and the map is empty

https://treeherder.mozilla.org/#/jobs?repo=try&revision=05a51b25a9c4
Attachment #8641772 - Flags: review?(jsantell)
Comment on attachment 8641772 [details] [diff] [review]
Take a fast shortcut when searching for BreakpointActors and the map is empty

Review of attachment 8641772 [details] [diff] [review]:
-----------------------------------------------------------------

Very surprising, very nice
Attachment #8641772 - Flags: review?(jsantell) → review+
https://hg.mozilla.org/mozilla-central/rev/de94f408a901
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 42
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: