[Webkit-unassigned] [Bug 218939] New: Consider AoT-compiling small (<64KB?) WebAssembly Modules immediately without interpreting?
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Nov 14 06:24:37 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=218939
Bug ID: 218939
Summary: Consider AoT-compiling small (<64KB?) WebAssembly
Modules immediately without interpreting?
Product: WebKit
Version: Safari 14
Hardware: Macintosh
OS: macOS 10.15
Status: NEW
Severity: Normal
Priority: P2
Component: WebAssembly
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jujjyl at gmail.com
http://clb.confined.space/tgifelse/t_shapes_looped.html runs a small Wasm Module (~6KB) in a setTimeout() loop, performing the same Wasm computation over and over.
Executing it in Firefox and Chrome, they both give consistent performance results immediately from the first iteration onwards.
In Safari however, first iteration takes up ~500msecs as the code is interpreted(?), after which AoT compilation kicks in(?), and the subsequent runs are fast ~10-20msecs.
Would it make sense to skip interpreting small (<64KB?) Wasm Modules at all, but immediately/eagerly AoT-compile them?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201114/3d21475c/attachment-0001.htm>
More information about the webkit-unassigned
mailing list