Closed
Bug 656878
Opened 13 years ago
Closed 13 years ago
nsStringArraySH::GetProperty copies string to js, but it could probably share it
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: smaug, Assigned: smaug)
Details
Attachments
(3 files)
478 bytes,
text/html
|
Details | |
2.13 KB,
patch
|
Details | Diff | Splinter Review | |
1.27 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
.
Assignee | ||
Comment 1•13 years ago
|
||
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → Olli.Pettay
Assignee | ||
Comment 2•13 years ago
|
||
Uploaded to tryserver. While I was looking at this code, I removed one QI in nsDOMTokenListSH::GetStringAt. We may want to add some helper method which does all the ForgetSharedBuffer thing. Or perhaps the last parameter of ReadableToJSVal should be boolean to indicate whether it is ok to call ForgetSharedBuffer.
Assignee | ||
Comment 3•13 years ago
|
||
The QI removal doesn't apparently work, so this is just about the string handling optimization.
Assignee | ||
Comment 4•13 years ago
|
||
(The QI optimization fails because I forgot the code is used also for nsDOMSettableTokenList)
Assignee | ||
Updated•13 years ago
|
Attachment #532206 -
Flags: review?(bzbarsky)
Comment 5•13 years ago
|
||
Comment on attachment 532206 [details] [diff] [review] without QI change r=me
Attachment #532206 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 6•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/5d5f2f15037b
Status: NEW → RESOLVED
Closed: 13 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
•