We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have made two simple test (below). The first, with SparseBitSet gives me OOM. The second works without much memory usage. What I made wrong?
public static void main(String[] args) { SparseBitSet[] sbs = new SparseBitSet[1000000]; for(int i=0; i<1000000; i++) { sbs[i]=new SparseBitSet(); for(int j=0; j<100; j++) { sbs[i].set((int)(Math.random()*1000000)); } } System.out.println(); }
and
IntArrayList[] sbs = new IntArrayList[1000000]; for(int i=0; i<1000000; i++) { sbs[i]=new IntArrayList(); for(int j=0; j<100; j++) { sbs[i].add((int)(Math.random()*1000000)); } } System.out.println();
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have made two simple test (below). The first, with SparseBitSet gives me OOM. The second works without much memory usage. What I made wrong?
and
The text was updated successfully, but these errors were encountered: