Changeset 211076 in webkit


Ignore:
Timestamp:
Jan 23, 2017 10:01:27 PM (7 years ago)
Author:
Antti Koivisto
Message:

Maintain ordering when doing speculative loads
https://bugs.webkit.org/show_bug.cgi?id=167324

Forgot to implement a review comment.

  • NetworkProcess/cache/NetworkCacheSubresourcesEntry.cpp:

(WebKit::NetworkCache::makeSubresourceInfoVector):

Allocated initial capacity and use uncheckedAppend.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r211072 r211076  
     12017-01-23  Antti Koivisto  <antti@apple.com>
     2
     3        Maintain ordering when doing speculative loads
     4        https://bugs.webkit.org/show_bug.cgi?id=167324
     5
     6        Forgot to implement a review comment.
     7
     8        * NetworkProcess/cache/NetworkCacheSubresourcesEntry.cpp:
     9        (WebKit::NetworkCache::makeSubresourceInfoVector):
     10
     11        Allocated initial capacity and use uncheckedAppend.
     12
    1132017-01-23  Commit Queue  <commit-queue@webkit.org>
    214
  • trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheSubresourcesEntry.cpp

    r211068 r211076  
    108108{
    109109    Vector<SubresourceInfo> result;
    110     result.reserveCapacity(subresourceLoads.size());
     110    result.reserveInitialCapacity(subresourceLoads.size());
    111111   
    112112    HashSet<Key> seenKeys;
     
    114114        if (!seenKeys.add(load->key).isNewEntry)
    115115            continue;
    116         result.append({ load->key, load->request });
     116        result.uncheckedAppend({ load->key, load->request });
    117117    }
    118118
Note: See TracChangeset for help on using the changeset viewer.