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

Add convenience method(s) for build + create, using ByteAggregator #6

Open
cowtowncoder opened this issue Oct 26, 2013 · 0 comments
Open

Comments

@cowtowncoder
Copy link
Contributor

It would be nice to be able to combine build-in-memory, and creator of trie into one step, to be used for cases where disk-backed version is not necessary.

For this I can use ByteAggregator from StoreMate (or other projects I use it on).
Its benefit over ByteArrayOutputStream is that there's no need for constant reallocation, copying, as it is segment-based. This helps with GC. Plus it could even use off-heap buffer segments if that seems necessary.

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

No branches or pull requests

1 participant