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

Leopard GF8: Write directly to output #226

Merged
merged 1 commit into from
Nov 20, 2022
Merged

Conversation

klauspost
Copy link
Owner

@klauspost klauspost commented Nov 17, 2022

Replace work slices with output slices, so we write directly to output

Saves a memcopy of final result.

Before/after:

BenchmarkEncodeLeopard50x20x1M-32                    100          11191776 ns/op        6558.42 MB/s        1816 B/op          2 allocs/op
BenchmarkEncodeLeopard50x20x1M-32                    122           9737593 ns/op        7537.83 MB/s        3352 B/op          3 allocs/op

Replace work slices with output slices, so we write directly to output

Saves a memcopy of final result.
@klauspost klauspost marked this pull request as ready for review November 17, 2022 14:56
@klauspost klauspost merged commit 11175a9 into master Nov 20, 2022
@klauspost klauspost deleted the leopard-gf8-direct-output branch November 20, 2022 15:04
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.

None yet

1 participant