Changeset 183661 in webkit


Ignore:
Timestamp:
Apr 30, 2015 6:38:27 PM (9 years ago)
Author:
commit-queue@webkit.org
Message:

Decrease minimum Vector size.
https://bugs.webkit.org/show_bug.cgi?id=144453

Patch by Alex Christensen <achristensen@webkit.org> on 2015-04-30
Reviewed by Andreas Kling.

  • wtf/Vector.h:

Make the default min size 4 to save memory on small Vectors.

Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r183624 r183661  
     12015-04-30  Alex Christensen  <achristensen@webkit.org>
     2
     3        Decrease minimum Vector size.
     4        https://bugs.webkit.org/show_bug.cgi?id=144453
     5
     6        Reviewed by Andreas Kling.
     7
     8        * wtf/Vector.h:
     9        Make the default min size 4 to save memory on small Vectors.
     10
    1112015-04-30  Yusuke Suzuki  <utatane.tea@gmail.com>
    212
  • trunk/Source/WTF/wtf/Vector.h

    r183499 r183661  
    582582};
    583583
    584 template<typename T, size_t inlineCapacity = 0, typename OverflowHandler = CrashOnOverflow, size_t minCapacity = 16>
     584template<typename T, size_t inlineCapacity = 0, typename OverflowHandler = CrashOnOverflow, size_t minCapacity = 4>
    585585class Vector : private VectorBuffer<T, inlineCapacity> {
    586586    WTF_MAKE_FAST_ALLOCATED;
Note: See TracChangeset for help on using the changeset viewer.