[Cocoa] IPC decoder is using decoded size to allocate memory for an array
Created attachment 420032 [details] Patch
rdar://72808726
Comment on attachment 420032 [details] Patch r=me I wonder if we should honor some safe nominal capacity, like std::min(1024, size), for performance.
(In reply to Geoffrey Garen from comment #3) > I wonder if we should honor some safe nominal capacity, like std::min(1024, > size), for performance. We don’t do that for CFArray or for vectors, but I agree that it *might* be a valuable optimization for cases like these.
Committed r272744: <https://trac.webkit.org/changeset/272744>