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

Possible bug for large read/write operations ? #7

Open
valavakilian opened this issue Feb 1, 2020 · 1 comment
Open

Possible bug for large read/write operations ? #7

valavakilian opened this issue Feb 1, 2020 · 1 comment

Comments

@valavakilian
Copy link

Hi and thank you for making this data structure.

I am writing a java server and have some memory issues. So I wanted to use compactHashMaps. I tested the code with both compactHashMap and normal java HashMap and it seems like the compactHashmap makes my code get an out of memory exception before the original HashMap.

I am running on a ubuntu machine and my java version is java 8. The code is fairly simple and I simply change the type of the data from hashMap for compacyHashMap (mostly just in the declarations) since the methods seem to be similar. I can provide the code if further information was required.

Thank you

@vlsi
Copy link
Owner

vlsi commented Mar 30, 2020

Well, it might indeed run out of memory if the keys have infinite cardinality.

Are the shapes of your maps consistent? Are you using auto-generated keys (e.g. timestamps or something like id1231454321)?

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

2 participants