Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e31f4b9eeb2726b0e02695142b8e9145d38ec8c3
      
https://github.com/WebKit/WebKit/commit/e31f4b9eeb2726b0e02695142b8e9145d38ec8c3
  Author: Chris Dumez <[email protected]>
  Date:   2026-03-25 (Wed, 25 Mar 2026)

  Changed paths:
    M Source/WebKit/Platform/IPC/ArgumentCoders.h

  Log Message:
  -----------
  Reserve HashSet / HashMap capacity in their respective IPC decoders
https://bugs.webkit.org/show_bug.cgi?id=310706

Reviewed by Darin Adler.

Reserve HashSet / HashMap capacity in their respective IPC decoders, for
better efficiency. It avoids rehashing every time we keep growing their
buffer. As is done for Vector, we have a size limit to avoid huge memory
allocations, given that we don't necessarily trust the sender of the
IPC.

Also simplify the HashSet encoder a bit by using a range loop instead of
an old-style iterator.

* Source/WebKit/Platform/IPC/ArgumentCoders.h:

Canonical link: https://commits.webkit.org/309961@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to