DescriptionOptimization of HashTraits<RefPtr<P> >::emptyValue()
HashTraits<RefPtr<P> >::emptyValue() is better just to return zero pointer
rather than access static RefPtr instance, further HashTraits<RefPtr<P> >::passOut() can be overriden to accept raw pointer (for empty value).
This all should improve HashMap performance in case its value type is RefPtr.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=150425
Patch Set 1 #
Total comments: 1
Patch Set 2 : Rebased. #
Messages
Total messages: 16 (0 generated)
|