码迷,mamicode.com
首页 > 移动开发 > 详细

Hashmap vs Bundle in Android

时间:2015-09-14 15:39:12      阅读:138      评论:0      收藏:0      [点我收藏+]

标签:

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

标签:

原文地址:http://my.oschina.net/sfshine/blog/505853

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!