Skip to content

adishavit/emscripten_buffers

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 (the page appears blank, open console to see results).

About

Measurements for passing buffers to emscriptened functions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published