Changeset 163754 in webkit


Ignore:
Timestamp:
Feb 9, 2014, 1:32:34 PM (12 years ago)
Author:
akling@apple.com
Message:

Reduce ref churn in ChildNodesLazySnapshot iteration.
<https://webkit.org/b/128492>

Add a missing release() in ChildNodesLazySnapshot::nextNode()
so we don't have to churn the ref count.

Reviewed by Sam Weinig.

  • dom/ContainerNode.h:

(WebCore::ChildNodesLazySnapshot::nextNode):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r163753 r163754  
     12014-02-09  Andreas Kling  <akling@apple.com>
     2
     3        Reduce ref churn in ChildNodesLazySnapshot iteration.
     4        <https://webkit.org/b/128492>
     5
     6        Add a missing release() in ChildNodesLazySnapshot::nextNode()
     7        so we don't have to churn the ref count.
     8
     9        Reviewed by Sam Weinig.
     10
     11        * dom/ContainerNode.h:
     12        (WebCore::ChildNodesLazySnapshot::nextNode):
     13
    1142014-02-09  Andreas Kling  <akling@apple.com>
    215
  • trunk/Source/WebCore/dom/ContainerNode.h

    r162492 r163754  
    274274    {
    275275        if (LIKELY(!hasSnapshot())) {
    276             RefPtr<Node> node = m_currentNode;
     276            RefPtr<Node> node = m_currentNode.release();
    277277            if (node)
    278278                m_currentNode = node->nextSibling();
Note: See TracChangeset for help on using the changeset viewer.