Hashmap vs Bundle in Android

Bundles are actually built on top of ArrayMaps, which are memory-efficient implementations of Maps. For smaller ArrayMaps, a search takes less computational time than computing the hash for a similarly populated HashMap. But if you have more than severl hundred items in it, the HashMap will perform better.

Besides, Bundles were not designed to be general-purpose data structures.

你可能感兴趣的:(Hashmap vs Bundle in Android)