Skip to content
This repository was archived by the owner on Dec 2, 2025. It is now read-only.

Remove double byte copy in lz4 unsafe utils#182

Open
Tim-Brooks wants to merge 1 commit intolz4:masterfrom
Tim-Brooks:do_not_copy_twice
Open

Remove double byte copy in lz4 unsafe utils#182
Tim-Brooks wants to merge 1 commit intolz4:masterfrom
Tim-Brooks:do_not_copy_twice

Conversation

@Tim-Brooks
Copy link

Currently in LZ4UnsafeUtils#safeIncrementalCopy every byte is copied
twice. First the byte is copied using the normal byte array syntax and
then the byte is copied using unsafe. Only one of these copies is
needed. This commit deletes the non-unsafe copy.

Currently in LZ4UnsafeUtils#safeIncrementalCopy every byte is copied
twice. First the byte is copied using the normal byte array syntax and
then the byte is copied using unsafe. Only one of these copies is
needed. This commit deletes the non-unsafe copy.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant