Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@adamgfraser
Copy link
Contributor

Initial work to resolve #3371. I am also seeing dramatically faster performance than Vector.

@adamgfraser adamgfraser requested a review from jdegoes April 20, 2020 13:31
Copy link
Member

@jdegoes jdegoes left a comment

Choose a reason for hiding this comment

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

Really nice! A few small suggestions. Can you post benchmarks?

@adamgfraser
Copy link
Contributor Author

Benchmarks:

[info] Benchmark                     (size)   Mode  Cnt     Score     Error  Units
[info] ChunkAddBenchmarks.chunkAdd    10000  thrpt   25  2400.011 ± 128.596  ops/s
[info] ChunkAddBenchmarks.vectorAdd   10000  thrpt   25  1144.855 ±  32.112  ops/s

So more than twice as fast as Vector for repeated appends.

@adamgfraser adamgfraser requested a review from jdegoes April 20, 2020 19:56
jdegoes
jdegoes previously approved these changes Apr 25, 2020
@jdegoes
Copy link
Member

jdegoes commented Apr 25, 2020

@adamgfraser Good to merge when conflicts are fixed! Excellent work.

@adamgfraser
Copy link
Contributor Author

@jdegoes This is ready to go.

@adamgfraser adamgfraser requested a review from jdegoes April 25, 2020 03:34
@adamgfraser
Copy link
Contributor Author

Shall we merge this before the next release?

jdegoes
jdegoes previously approved these changes May 19, 2020
@jdegoes
Copy link
Member

jdegoes commented May 19, 2020

@adamgfraser Good to merge when conflicts are fixed!

@adamgfraser
Copy link
Contributor Author

@jdegoes All set.

@jdegoes jdegoes merged commit c318d5c into zio:master May 19, 2020
@adamgfraser adamgfraser deleted the 3371 branch July 27, 2020 18:44
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.

Implement fast single-element append for Chunk

3 participants