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

allow control over which byte[] to hash to avoid unnecessary allocation + copy operations #69

Open
talwgx opened this issue Sep 28, 2023 · 0 comments

Comments

@talwgx
Copy link

talwgx commented Sep 28, 2023

It would be great if there was an overload for in: src/main/java/orestes/bloomfilter/BloomFilter.java : public boolean addRaw(byte[] element) where one could specify the start and len within the 'byte[] element', so that if a large buffer has already been allocated in memory, one can specify which portions within it are to be added to the filter. Currently a new byte[] of the correct length must be allocated and copied into each time, which forces unnecessary allocation + copy operations.

public boolean addRaw(byte[] element);

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