Instead of Vector<Deque<>>.
Created attachment 421832 [details] patch
Comment on attachment 421832 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=421832&action=review Overall, looks good to me. Glad someone else is using the PriorityQueue! > Source/WebKit/NetworkProcess/cache/NetworkCacheStorage.cpp:797 > + size_t pendingCount = m_pendingReadOperations.size(); I think you need an UNUSED_PARAM here.
Created attachment 421840 [details] patch
Comment on attachment 421840 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=421840&action=review r=me > Source/WebKit/NetworkProcess/cache/NetworkCacheStorage.cpp:61 > + static uint64_t ordinal; I had to look up ordinal in a dictionary but it holds up :) > Source/WebKit/NetworkProcess/cache/NetworkCacheStorage.h:187 > + PriorityQueue<std::unique_ptr<ReadOperation>, &isHigherPriority> m_pendingReadOperations; We may be able to use UniqueRef instead of unique_ptr?
> We may be able to use UniqueRef instead of unique_ptr? Probably better done in a separate cleanup that fixes other cases here too.
Committed r273670: <https://commits.webkit.org/r273670> All reviewed patches have been landed. Closing bug and clearing flags on attachment 421840 [details].
<rdar://problem/74882108>
Comment on attachment 421840 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=421840&action=review >> Source/WebKit/NetworkProcess/cache/NetworkCacheStorage.cpp:61 >> + static uint64_t ordinal; > > I had to look up ordinal in a dictionary but it holds up :) Maybe ASSERT(isMainThread()) or whatever thread this is supposed to be on here? Seems like no reason not to.
> Maybe ASSERT(isMainThread()) or whatever thread this is supposed to be on > here? Seems like no reason not to. Good idea!