https://github.com/adishavit/emscripten_buffers
Measurements for passing buffers to emscriptened functions.
https://github.com/adishavit/emscripten_buffers
emscripten
Last synced: 3 months ago
JSON representation
Measurements for passing buffers to emscriptened functions.
- Host: GitHub
- URL: https://github.com/adishavit/emscripten_buffers
- Owner: adishavit
- Created: 2017-02-27T10:15:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-24T06:24:14.000Z (about 9 years ago)
- Last Synced: 2025-10-07T06:49:09.912Z (9 months ago)
- Topics: emscripten
- Language: HTML
- Homepage: https://adishavit.github.io/emscripten_buffers/
- Size: 65.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Passing JavaScript Buffers to C/C++ Functions
Emscripten provides multiple ways of passing TypedBuffers to emscriptened code.
Many of these way incur internal and hidden copying of the data.
Here are some of them with some minimal profiling code.
#### Usage
1. Set your emscripten paths in `build.sh`
2. Run `./build.sh`
3. Open `index.html` in your browser.
4. Check the browser developer console to see the results.
Alternatively, see it [live here](https://adishavit.github.io/emscripten_buffers/) (the page appears blank, open console to see results).