You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
We currently publish ganache targeting node 10.7.0, but we could easily create additional builds that target more modern ES versions, which will increase performance for those versions (node 12 and 14, modern browsers, etc).
One feature in particular is ES private fields are compiled to WeakMap lookups, which is costly, as it involves a function call, map.has check, branching, and a map.get/map.set. I run a microbenchmark on this in the past and I can't remember the results, but they were significant enough to ensure we memoize private field lookups in each function call, e.g.,
We currently publish ganache targeting node 10.7.0, but we could easily create additional builds that target more modern ES versions, which will increase performance for those versions (node 12 and 14, modern browsers, etc).
One feature in particular is ES private fields are compiled to WeakMap lookups, which is costly, as it involves a function call, map.has check, branching, and a map.get/map.set. I run a microbenchmark on this in the past and I can't remember the results, but they were significant enough to ensure we memoize private field lookups in each function call, e.g.,
instead of
The text was updated successfully, but these errors were encountered: