[Webkit-unassigned] [Bug 167324] Maintain ordering when doing speculative loads

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 23 18:02:28 PST 2017


https://bugs.webkit.org/show_bug.cgi?id=167324

--- Comment #4 from Darin Adler <darin at apple.com> ---
Comment on attachment 299539
  --> https://bugs.webkit.org/attachment.cgi?id=299539
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=299539&action=review

>> Source/WebKit2/NetworkProcess/cache/NetworkCacheSubresourcesEntry.cpp:109
>> +    Vector<SubresourceInfo> result;
> 
> I think we should reserveInitialCapacity() and uncheckedAppend() since we know there will be at most subresourceLoads.size() items and the common case will be subresourceLoads.size() items.

The patch landed with a call to reserveCapacity/append, but reserveInitialCapacity/uncheckedAppend are more efficient.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170124/71ee8123/attachment.html>


More information about the webkit-unassigned mailing list