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

ByteBuffer: make getInteger for UInt8 faster #1380

Merged
merged 1 commit into from
Feb 6, 2020

Conversation

weissi
Copy link
Member

@weissi weissi commented Feb 4, 2020

Motivation:

getInteger used the normal, generic implementation for UInt8s, however
they can be made considerably faster by using a specialised method.
ByteBufferIterator was also affected by this.

Modifications:

Use a specialised version for UInt8s for getInteger.

Result:

  • ByteBufferView can be iterated about 20% faster.

@weissi weissi force-pushed the jw-bb-view-iterator-faster branch 2 times, most recently from 2bedbb9 to c320d77 Compare February 4, 2020 16:28
@weissi weissi added the semver/patch No public API change. label Feb 5, 2020
@weissi weissi added this to the 2.14.0 milestone Feb 5, 2020
Motivation:

getInteger used the normal, generic implementation for UInt8s, however
they can be made considerably faster by using a specialised method.
ByteBufferIterator was also affected by this.

Modifications:

Use a specialised version for UInt8s for getInteger.

Result:

- ByteBufferView can be iterated about 20% faster.
@weissi weissi merged commit c6e5fe8 into apple:master Feb 6, 2020
@weissi weissi deleted the jw-bb-view-iterator-faster branch February 6, 2020 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants