Re: OpenBitSet.trimTrailingZeros() doesn't free memory

2008-11-23 Thread Timo Nentwig
On Saturday 22 November 2008 18:15:45 Yonik Seeley wrote: > On Sat, Nov 22, 2008 at 11:35 AM, Timo Nentwig <[EMAIL PROTECTED]> wrote: > > IMHO it doesn't make much sense that trimTrailingZeros() doesn't shrink > > the array. Sure the arraycopy() will take some extra time and simply > > adjusting wl

Re: OpenBitSet.trimTrailingZeros() doesn't free memory

2008-11-22 Thread Yonik Seeley
On Sat, Nov 22, 2008 at 11:35 AM, Timo Nentwig <[EMAIL PROTECTED]> wrote: > IMHO it doesn't make much sense that trimTrailingZeros() doesn't shrink the > array. Sure the arraycopy() will take some extra time and simply adjusting > wlen still has the benefit that it will probably speed up the bit se

OpenBitSet.trimTrailingZeros() doesn't free memory

2008-11-22 Thread Timo Nentwig
Hi there, IMHO it doesn't make much sense that trimTrailingZeros() doesn't shrink the array. Sure the arraycopy() will take some extra time and simply adjusting wlen still has the benefit that it will probably speed up the bit set operations as there are less bits to be operated on. On the oth