Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce syscall/js calls needed to load Uint8Array #738

Merged
merged 1 commit into from Jul 15, 2019

Conversation

slugalisk
Copy link
Contributor

Description

With the result buffer wrapped in a js.TypedArray js will do the copy for us. See: WebAssembly/design#1231 (comment)

Copy link
Member

@backkem backkem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great!
Please change your commit message and add yourself to the main readme to make the CI green. Refer to the contribution docs for details. Let me know if you need any help with that.

Reimplements the uint8ArrayValueToBytes js util used for copying buffers
from js into wasm using TypedArray.prototype.set to improve performance.
@codecov-io
Copy link

Codecov Report

Merging #738 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #738   +/-   ##
=======================================
  Coverage   76.64%   76.64%           
=======================================
  Files          58       58           
  Lines        4038     4038           
=======================================
  Hits         3095     3095           
  Misses        687      687           
  Partials      256      256

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 41d39a1...d2c759f. Read the comment docs.

@Sean-Der Sean-Der merged commit 632530b into pion:master Jul 15, 2019
@Sean-Der
Copy link
Member

Thank you so much for the contribution @slugalisk! We are excited you are using Pion, if there is anything we can do to help please reach out on here or over Slack!

@slugalisk
Copy link
Contributor Author

My pleasure! Thanks for the awesome lib!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants