Closed
Bug 756383
Opened 12 years ago
Closed 12 years ago
make nsHTMLAnchorElement::IsHTMLFocusable faster
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla15
People
(Reporter: surkov, Assigned: surkov)
References
Details
(Keywords: access)
Attachments
(1 file)
1.50 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
in example of bug 732872 it takes up to 11% because of URI computation. Cached URI usage should help.
Attachment #625024 -
Flags: review?(bugs)
Comment 1•12 years ago
|
||
Comment on attachment 625024 [details] [diff] [review] patch I'm not familiar with Link. Jonas and Boris should know it better, based on blame.
Attachment #625024 -
Flags: review?(bugs) → review?(jonas)
Comment on attachment 625024 [details] [diff] [review] patch I won't have time to get to this anytime soon. Checking with bz.
Attachment #625024 -
Flags: review?(jonas) → review?(bzbarsky)
Comment 3•12 years ago
|
||
Comment on attachment 625024 [details] [diff] [review] patch Wouldn't it make more sense to move the cache check into IsLink()?
Attachment #625024 -
Flags: review?(bzbarsky) → review-
Assignee | ||
Comment 4•12 years ago
|
||
(In reply to Boris Zbarsky (:bz) from comment #3) > Wouldn't it make more sense to move the cache check into IsLink()? IsLink is a virtual method and takes an argument we don't need what makes us a little bit slower than we could be. Good example how minor stuffs can make a difference I've got is bug 756381 where we lost 3% perf on nsCOMPtr things.
Assignee | ||
Comment 5•12 years ago
|
||
(In reply to Boris Zbarsky (:bz) from comment #3) > Comment on attachment 625024 [details] [diff] [review] > patch > > Wouldn't it make more sense to move the cache check into IsLink()? in case if I misread you: I can fix IsLink() while I'm here but I would avoid to use it for IsHTMLFocusable implementation.
Comment 6•12 years ago
|
||
Comment on attachment 625024 [details] [diff] [review] patch OK, r=me. I'm still planning to rip out all this stuff anyway...
Attachment #625024 -
Flags: review- → review+
Assignee | ||
Comment 7•12 years ago
|
||
(In reply to Boris Zbarsky (:bz) from comment #6) > OK, r=me. I'm still planning to rip out all this stuff anyway... ok, cool since these stuffs are crazy a little bit (I guess because old and new code share the same room). Then I'm leaving IsLink untouched for now.
Assignee | ||
Comment 8•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/41d7c9506e27
Assignee | ||
Updated•12 years ago
|
Target Milestone: --- → mozilla15
Comment 9•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/41d7c9506e27
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•