[wasm][serialization] Use unique wire bytes pointers
We were doing the cache lookup using the original {wire_bytes_vec}, but then inserting the module with another copy stored in the {NativeModule}. This causes {NativeModuleCache::Key::operator<} to do a full {memcmp} on the two wire bytes copies. By using the same pointer consistently, we can avoid that costly {memcmp}. R=thibaudm@chromium.org Bug: v8:11164 Change-Id: I19ba1022f700d8da40671818ee2e2ebdbbddd5c0 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2658329Reviewed-by: Thibaud Michaud <thibaudm@chromium.org> Commit-Queue: Clemens Backes <clemensb@chromium.org> Cr-Commit-Position: refs/heads/master@{#72431}
Showing
Please
register
or
sign in
to comment