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

Is there a better or faster way to send text from Rust to js? #2

Open
jakedeichert opened this issue Dec 29, 2017 · 1 comment
Open

Is there a better or faster way to send text from Rust to js? #2

jakedeichert opened this issue Dec 29, 2017 · 1 comment
Labels

Comments

@jakedeichert
Copy link
Owner

@jakedeichert jakedeichert commented Dec 29, 2017

No description provided.

@alexcrichton
Copy link

@alexcrichton alexcrichton commented Dec 31, 2017

FWIW I don't believe there's any way to avoid the copying overhead right now. That being said, though, I'm sure there's some construction of JS which is the fastest way to copy data (least bound checks, etc), but I haven't benchmarked to see what's best yet :)

Overall I wouldn't worry too much in general, and once it starts showing up in a profile I believe the solution for now is "figure out how to copy less often" rather than "figure out how to copy faster"

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.