WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
75375
Cache and reuse the HTMLFormElement.elements collection.
https://bugs.webkit.org/show_bug.cgi?id=75375
Summary
Cache and reuse the HTMLFormElement.elements collection.
Andreas Kling
Reported
2011-12-29 21:19:43 PST
To improve memory use and performance when .elements is used more than once.
Attachments
Patch
(10.96 KB, patch)
2011-12-29 21:39 PST
,
Andreas Kling
kling
: review-
Details
Formatted Diff
Diff
Patch
(12.07 KB, patch)
2011-12-29 22:48 PST
,
Andreas Kling
no flags
Details
Formatted Diff
Diff
Patch
(11.71 KB, patch)
2011-12-30 11:50 PST
,
Andreas Kling
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Andreas Kling
Comment 1
2011-12-29 21:39:47 PST
Created
attachment 120778
[details]
Patch
Andreas Kling
Comment 2
2011-12-29 22:37:14 PST
Comment on
attachment 120778
[details]
Patch Actually, we can do slightly better.
Andreas Kling
Comment 3
2011-12-29 22:48:22 PST
Created
attachment 120782
[details]
Patch Same patch + get rid of the per-form CollectionCache. We don't need that anymore since there's only one HTMLFormCollection per form.
Andreas Kling
Comment 4
2011-12-30 11:50:42 PST
Created
attachment 120811
[details]
Patch
Anders Carlsson
Comment 5
2011-12-30 12:03:25 PST
Comment on
attachment 120811
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=120811&action=review
> Source/WebCore/html/HTMLCollection.cpp:58 > + if (m_baseIsRetained) > + m_base->ref();
I think you need to deref m_base in the destructor.
Andreas Kling
Comment 6
2011-12-30 12:05:12 PST
(In reply to
comment #5
)
> (From update of
attachment 120811
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=120811&action=review
> > > Source/WebCore/html/HTMLCollection.cpp:58 > > + if (m_baseIsRetained) > > + m_base->ref(); > > I think you need to deref m_base in the destructor.
We already do! :)
Andreas Kling
Comment 7
2011-12-30 12:15:25 PST
Comment on
attachment 120811
[details]
Patch Clearing flags on attachment: 120811 Committed
r103848
: <
http://trac.webkit.org/changeset/103848
>
Andreas Kling
Comment 8
2011-12-30 12:15:45 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug