Reviewed by Darin.
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Apr 2005 18:46:04 +0000 (18:46 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Apr 2005 18:46:04 +0000 (18:46 +0000)
commite1f8890fa75d0362d87d1efa008e8fd0f4f56fd6
tree86931931c1a63b74c06b6d8fb6ecbcbaaccf3988
parentdb9c2f2775e90b402ab7be9a92b53f8ac36024b4
    Reviewed by Darin.

- use single-threaded malloc in places where malloc is hot for an
8% speed improvement on cvs-base

        * ForwardingHeaders/misc/fast_malloc.h: Added.
        * WebCore.pbproj/project.pbxproj:
        * khtml/css/css_base.h:
        * khtml/css/css_ruleimpl.h:
        * khtml/css/css_valueimpl.h:
        * khtml/css/cssstyleselector.h:
        * khtml/misc/arena.cpp:
        (ArenaAllocate):
        (FreeArenaList):
        (ArenaFinish):
        * khtml/misc/main_thread_malloc.cpp: Added.
        * khtml/misc/main_thread_malloc.h: Added.
        * khtml/rendering/render_style.h:
        * khtml/xml/dom2_eventsimpl.h:
        * khtml/xml/dom2_rangeimpl.h:
        * khtml/xml/dom2_traversalimpl.h:
        * khtml/xml/dom2_viewsimpl.h:
        * khtml/xml/dom_docimpl.h:
        * khtml/xml/dom_elementimpl.cpp:
        (NamedAttrMapImpl::NamedAttrMapImpl):
        (NamedAttrMapImpl::clearAttributes):
        (NamedAttrMapImpl::operator=):
        (NamedAttrMapImpl::addAttribute):
        (NamedAttrMapImpl::removeAttribute):
        * khtml/xml/dom_elementimpl.h:
        * khtml/xml/dom_nodeimpl.h:
        * khtml/xml/dom_stringimpl.h:
        * kwq/KWQFontFamily.h:
        * kwq/KWQListImpl.mm:
        * kwq/KWQString.h:
        * kwq/KWQString.mm:
        (ALLOC_CHAR):
        (ALLOC_QCHAR):
        (QString::setBufferFromCFString):
        (allocatePageNode):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9050 268f45cc-cd09-0410-ab3c-d52691b4dbfc
24 files changed:
WebCore/ChangeLog-2005-08-23
WebCore/ForwardingHeaders/misc/main_thread_malloc.h [new file with mode: 0644]
WebCore/WebCore.pbproj/project.pbxproj
WebCore/khtml/css/css_base.h
WebCore/khtml/css/css_ruleimpl.h
WebCore/khtml/css/css_valueimpl.h
WebCore/khtml/css/cssstyleselector.h
WebCore/khtml/misc/arena.cpp
WebCore/khtml/misc/main_thread_malloc.cpp [new file with mode: 0644]
WebCore/khtml/misc/main_thread_malloc.h [new file with mode: 0644]
WebCore/khtml/rendering/render_style.h
WebCore/khtml/xml/dom2_eventsimpl.h
WebCore/khtml/xml/dom2_rangeimpl.h
WebCore/khtml/xml/dom2_traversalimpl.h
WebCore/khtml/xml/dom2_viewsimpl.h
WebCore/khtml/xml/dom_docimpl.h
WebCore/khtml/xml/dom_elementimpl.cpp
WebCore/khtml/xml/dom_elementimpl.h
WebCore/khtml/xml/dom_nodeimpl.h
WebCore/khtml/xml/dom_stringimpl.h
WebCore/kwq/KWQFontFamily.h
WebCore/kwq/KWQListImpl.mm
WebCore/kwq/KWQString.h
WebCore/kwq/KWQString.mm