mirror of
https://github.com/golang/go
synced 2024-11-23 18:20:04 -07:00
1cfacfbe8a
The existing implementation clears and recreates Javascript timeouts when Go is called from js, leading to excessive load on the js scheduler. Instead, we should remove redundant calls to clearTimeout and refrain from creating new timeouts if the previous event's timestamp is within 1 millisecond of our target (the js scheduler's max precision) Fixes #56100 Change-Id: I42bbed4c2f1fa6579c1f3aa519b6ed8fc003a20c Reviewed-on: https://go-review.googlesource.com/c/go/+/442995 Reviewed-by: Michael Knyszek <mknyszek@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> Run-TryBot: Michael Knyszek <mknyszek@google.com> |
||
---|---|---|
.. | ||
go_js_wasm_exec | ||
go_wasip1_wasm_exec | ||
wasm_exec_node.js | ||
wasm_exec.html | ||
wasm_exec.js |