Ignore:
Timestamp:
Jun 30, 2011, 3:56:49 AM (14 years ago)
Author:
[email protected]
Message:

2011-06-30 Oliver Varga <[email protected]>

Reviewed by Nikolas Zimmermann.

Speed up SVGSMILElement::findInstanceTime.
https://bugs.webkit.org/show_bug.cgi?id=61025

Add a new parameter to StdlibExtras.h::binarySerarch function
to also handle cases when the array does not contain the key value.
This is needed for an svg function.

  • wtf/StdLibExtras.h: (WTF::binarySearch):

2011-06-30 Oliver Varga <[email protected]>

Reviewed by Nikolas Zimmermann.

Speed up SVGSMILElement::findInstanceTime.
https://bugs.webkit.org/show_bug.cgi?id=61025

Replace the linear search to binary search on ordered list because
the previous searches from the beginning was not efficient.

No new tests this is only a performance tweak.

  • svg/animation/SVGSMILElement.cpp: (WebCore::extractTimeFromVector): (WebCore::SVGSMILElement::findInstanceTime):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r90065 r90102  
     12011-06-30  Oliver Varga  <[email protected]>
     2
     3        Reviewed by Nikolas Zimmermann.
     4
     5        Speed up SVGSMILElement::findInstanceTime.
     6        https://bugs.webkit.org/show_bug.cgi?id=61025
     7
     8        Add a new parameter to StdlibExtras.h::binarySerarch function
     9        to also handle cases when the array does not contain the key value.
     10        This is needed for an svg function.
     11
     12        * wtf/StdLibExtras.h:
     13        (WTF::binarySearch):
     14
    1152011-06-29  Gavin Barraclough  <[email protected]>
    216
Note: See TracChangeset for help on using the changeset viewer.