Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: db4f6aa69ab27ed7346a92cbaffccbfdb25eee67
      
https://github.com/WebKit/WebKit/commit/db4f6aa69ab27ed7346a92cbaffccbfdb25eee67
  Author: Carlos Alberto Lopez Perez <[email protected]>
  Date:   2026-07-31 (Fri, 31 Jul 2026)

  Changed paths:
    M JSTests/wasm/js-api/Instance.imports.exports.unicode.js

  Log Message:
  -----------
  [JSC] wasm/js-api/Instance.imports.exports.unicode.js: reuse the import and 
export descriptor arrays instead of rebuilding them for every check
https://bugs.webkit.org/show_bug.cgi?id=320756

Reviewed by Yusuke Suzuki.

Cache the import and export descriptor arrays before checking their contents.
Calling WebAssembly.Module.imports() for every imported name rebuilt the
import descriptor around ~961 times and the export one around 31 times,
causing excessive allocation and garbage collection without adding test
coverage.

This was causing this test to be very slow on Release+Asserts for WPE ARM64,
usually timing out.
After this fix the total time to run it went from several minutes to less
than 2 seconds

* JSTests/wasm/js-api/Instance.imports.exports.unicode.js:
(idxModule):

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



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

Reply via email to