From: Gavin_King/Cirrus%<CI...@ci...> - 2002-02-11 07:20:41
|
Is anyone interested in messing with the collection package? There are a couple of ways it could be improved: 1. We could support sorted collections like TreeSet, TreeMap. 2. At present when a collection changes, its marked as dirty and all its database rows are deleted and then recreated when the Session flushes. This is efficient if more than half its elements changed. But if we just added or removed a couple of elements, its very inefficient. Is anyone interested in optimising this behaviour (at least for Maps, Lists and arrays where its easy to know which elements changed)? |