Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Support addAll(Collection<byte[]>) for better performance with small records #200

Open
roytmana opened this issue Oct 4, 2018 · 2 comments

Comments

@roytmana
Copy link

roytmana commented Oct 4, 2018

I use tape to queue up very small objects (IDs of 24 bytes). They come one by one or in batches of anywhere from 2 to 100 at a time averaging 10 at a time (I have a blocking queue on top of the tape with many producers and one consumer) so performance I am getting is not very good due to constant IO disk sync. It would improve dramatically if tape supported addAll(Collection<byte[]>) in addition to simple add(byte[]) as it would mean just one sync instead of current 10 for me.

Is there any chance it could be added to 2.0?

@f2prateek
Copy link
Collaborator

I think I would be open to this! I don't have my own use case for this, but it seems like a reasonable request.

@roytmana
Copy link
Author

roytmana commented Oct 5, 2018

@f2prateek great thank you - looking forward to this improvement :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants