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

[Loader] Speedup __getArray #814

Merged
merged 1 commit into from
Sep 4, 2019
Merged

[Loader] Speedup __getArray #814

merged 1 commit into from
Sep 4, 2019

Conversation

MaxGraey
Copy link
Member

@MaxGraey MaxGraey commented Sep 4, 2019

Benchmark results.
Firefox 69:
Firefox

Chrome 77.0.3865.56:
Chrome

Bench link: https://esbench.com/bench/5d6fb7144cd7e6009ef62769

  • Note: unset Babel transpiration check button before run tests

@MaxGraey MaxGraey requested a review from dcodeIO September 4, 2019 15:42
@dcodeIO dcodeIO merged commit 2672042 into AssemblyScript:master Sep 4, 2019
@dcodeIO
Copy link
Member

dcodeIO commented Sep 4, 2019

Great, thanks! :)

@MaxGraey MaxGraey deleted the improve-loader-copy branch September 4, 2019 17:56
@jtenner
Copy link
Contributor

jtenner commented Sep 5, 2019

Screenshot_2019-09-05-18-30-44
Just sharing my results on mobile. Looks like spread wins really well on chrome mobile.

@MaxGraey
Copy link
Member Author

MaxGraey commented Sep 5, 2019

@jtenner It's impossible=) It seems you forget unset "babel transpilation"

Снимок экрана 2019-09-06 в 01 45 46

In this case Babel add special helper for emulation spread (polyfill) and after that just remove it via DCE stage so you measure nothing and this "nothing" is blazing fast =)

See my bottom notes

@jtenner
Copy link
Contributor

jtenner commented Sep 5, 2019

Yeah that fixes the issue. Wow. The third one is nearly 20x as fast on mobile!

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.

3 participants