Bug 310706
| Summary: | Reserve HashSet / HashMap capacity in their respective IPC decoders | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> |
| Component: | WebKit2 | Assignee: | Chris Dumez <cdumez> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | kkinnunen, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Chris Dumez
Reverse 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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Chris Dumez
Pull request: https://github.com/WebKit/WebKit/pull/61324
EWS
Committed 309961@main (e31f4b9eeb27): <https://commits.webkit.org/309961@main>
Reviewed commits have been landed. Closing PR #61324 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/173378179>