[webkit-reviews] review granted: [Bug 228142] Micro-optimize innerHTML : [Attachment 434023] Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 22 11:55:17 PDT 2021


Simon Fraser (smfr) <simon.fraser at apple.com> has granted Yusuke Suzuki
<ysuzuki at apple.com>'s request for review:
Bug 228142: Micro-optimize innerHTML
https://bugs.webkit.org/show_bug.cgi?id=228142

Attachment 434023: Patch

https://bugs.webkit.org/attachment.cgi?id=434023&action=review




--- Comment #12 from Simon Fraser (smfr) <simon.fraser at apple.com> ---
Comment on attachment 434023
  --> https://bugs.webkit.org/attachment.cgi?id=434023
Patch

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

> Source/WTF/wtf/Vector.h:771
> +    // "shrinkToBestFit()" shrinks the capacity to fix the current size,
while leaving sufficient capacity for more items. The upperbound of the
> +    // capacity is the one as if expandCapacity happens with the current
size.

"The upperbound of the capacity is that which would result from calling
expandCapacity() with the current size"


More information about the webkit-reviews mailing list