Keep in mind that we're talking about grid pane, which is a container and not likely to contain more than ... 10 ... 100 ... rows & columns? So we're talking about using at most 100 bytes in an array vs whatever the BitSet class will take up. The array is actually likely to run faster, because indexed memory access is O(1), but either way, we're talking about nanoseconds, if that.
I was more concerned with the immutability of the data, but that's been addressed another way, so I'm less enthusiastic about this change now :-/ -T On Thu, Nov 19, 2009 at 9:26 AM, Sandro Martini <sandro.mart...@gmail.com>wrote: > Ah, a last thing: > a boolean uses 1 byte, while in a BitSet every value inside is stored > as a single bit (plus the overhead of the data structure), so with > many rows the difference could be visible, but I agree that with > modern PC a few MB is not so much ... but if the effort is not too > much (and at low priority) why not do it ? > > Bye >