14 jan 2007 kl. 17.46 skrev Erick Erickson:


Map size, 10,000,000 <userid, lucdocid> pairs
Looking up 1,000,000 user ids and setting them in a bitset.

Total time to set all the bits, 1.016 seconds. Running inside of Eclipse on a 2700 MH AMD with 1G memory (and I used up almost all this memory, but made
no attempt to optimize it at all).

If those user identities are incremental and without gaps, you can save a bunch of memory by using a NIO buffer:

http://java.sun.com/j2se/1.4.2/docs/api/java/nio/IntBuffer.html



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to