Comments (3)
hmmm... still not implemented in Firefox
bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=575688
from emscripten.
I don't think it's implemented in Safari or Opera either. But in any case it would be interesting to do a benchmark to see if this is indeed fast. And if so, adding code to Emscripten to support it as an option would not be hard.
I wonder though if it will be. These are function calls, not indexings, which is a different kind of optimization for JS engines, that I suspect they don't do as well on. Making this fast isn't normal function call inlining either, it's inlining of native code into JS. I don't think any JS engine does that (things like PyPy do, though).
Also, there is the Binary Data proposal for JS, which would provide something similar to this. Firefox for example is starting to implement it. So it's not clear to me what the future of binary data access is, at the moment...
from emscripten.
I did a test in v8, was a little (few %) bit slower than array + bitshifting.
from emscripten.
Related Issues (20)
- register_vector and register_map with raw pointer HOT 1
- Support omitting optional arguments in js embind bindings HOT 1
- --emit-tsd crashes when wasmTable is exported
- When I use fflush(stdin), the output is wrong. Is it a bug? HOT 1
- Emscripten arm64 > 3.1.26 cannot build certain libboost libraries HOT 5
- emit-tsd does not take into account MODULARIZE + WASM_ASYNC_COMPILATION HOT 1
- emit-tsd could also help with typings for MODULARIZE function arg
- Linking with -s MAXIMUM_MEMORY=4GB and -s MODULARIZE=1 is very slow. HOT 1
- Missing field maxColorAttachmentBytesPerSample in requiredLimits for wgpuAdapterRequestDevice
- a
- Converting pointers in function signature to int
- AppleSilicon will not load debug project when -fwasm-exceptions is used in C++ and Link Flags HOT 2
- Missing mmap()/munmap()/mremap() features for in-place adjustment of anonymous mappings HOT 2
- In `v3.1.58`, why pthreads don't inherit the `moduleArg`? HOT 18
- 3.1.58 breaks usage in Node.js worker HOT 5
- pthread initialization for 40 pthreads takes 5.8seconds because of 40 separate network roundtrips.. HOT 11
- -s USE_SDL=2 in compile doesn't choose correct header files any longer HOT 10
- Web audio typescript generation failure
- Inflexible web audio worklet module query HOT 1
- Question: -sMAIN_MODULE=1 and -sEXPORTED_FUNCTIONS warning no longer valid? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emscripten.