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
Add implementation of emscripten_memcpy_big based on bulk memory.
These new functions live in `libbulkmemory` which only gets included
if bulk memory is enabled (either via `-mbulk-memory` directly or
indirectly via `-pthread).
benchmark results for benchmark.test_memcpy_1mb:
```
v8: mean: 1.666
v8-bulkmemory: mean: 1.598
v8-standalone-bulkmemory: mean: 1.576
v8-standalone: mean: 3.197
```
Here we can see the that when bulk memory is enabled its at least as
fast if not faster than the JS version.
v8-standalone doesn't have emscripten_memcpy_big at all is is much
slower, as expected. By adding `-mbulk-memory` the standalone version
becomes just as fast as the non-standalone.
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin lists browsers that support TypedArray.prototype.copyWithin, but it
0 commit comments