Skip to content

Improve memcmp and compareImpl implementations #870

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

Merged
merged 15 commits into from
Sep 29, 2019
Merged

Improve memcmp and compareImpl implementations #870

merged 15 commits into from
Sep 29, 2019

Conversation

MaxGraey
Copy link
Member

@MaxGraey MaxGraey commented Sep 25, 2019

stdlib of AssemblyScript currently not using memory.compare / memcmp but it could be used outside or later so I decided improve this.

this changes speedup string/memory comparision up to 9.5x times for aligned/same aligned pointers.
bench fiddle

The same also done for compareImpl

@MaxGraey MaxGraey requested a review from dcodeIO September 25, 2019 19:22
@MaxGraey MaxGraey changed the title Improve memcmp implementation Improve memcmp and compareImpl implementations Sep 25, 2019
Copy link
Member

@dcodeIO dcodeIO left a comment

Choose a reason for hiding this comment

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

LGTM

@dcodeIO dcodeIO merged commit f1b13a4 into AssemblyScript:master Sep 29, 2019
@dcodeIO
Copy link
Member

dcodeIO commented Sep 29, 2019

Thanks! :)

@MaxGraey MaxGraey deleted the improve-memcopy branch September 29, 2019 00:49
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.

2 participants