Bug 100190 - CodeBlock: Give m_putToBaseOperations an inline capacity.
Summary: CodeBlock: Give m_putToBaseOperations an inline capacity.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andreas Kling
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2012-10-23 21:16 PDT by Andreas Kling
Modified: 2012-10-23 22:10 PDT (History)
3 users (show)

See Also:


Attachments
Patch (1.48 KB, patch)
2012-10-23 21:28 PDT, Andreas Kling
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 2012-10-23 21:16:00 PDT
Most of the time, there's only a single entry in this vector put in there by CodeBlock::CodeBlock.
We should give it an inline capacity to avoid unnecessarily growing the vector buffer to 16 on that first append().
Comment 1 Radar WebKit Bug Importer 2012-10-23 21:18:30 PDT
<rdar://problem/12562466>
Comment 2 Andreas Kling 2012-10-23 21:28:53 PDT
Created attachment 170310 [details]
Patch
Comment 3 WebKit Review Bot 2012-10-23 22:10:56 PDT
Comment on attachment 170310 [details]
Patch

Clearing flags on attachment: 170310

Committed r132307: <http://trac.webkit.org/changeset/132307>
Comment 4 WebKit Review Bot 2012-10-23 22:10:59 PDT
All reviewed patches have been landed.  Closing bug.