Go for it. Tim
Leo Li wrote: > Hi, all: > Current implementation of HashMap.putAll() in Harmony just calls > super.putAll() which ultimately will call HashMap.put(), while this way > might lead to expand the backing data array more than once if the elements > in the added Map is sufficiently large. However, the situation is able to > be avoided, since we actually know the size of the added Map, thus the > expected HashMap capacity. > If no one objects, I will add an expected capacity argument in internal > rehash() method as rehash(int expectedCapacity) and rewrite the > HashMap.putAll(). > > Good luck! > -- Tim Ellison ([EMAIL PROTECTED]) IBM Java technology centre, UK. --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]