首页 > 移动平台 > 详细

Hashmap vs Bundle in Android

时间:2015-09-14 15:38:03      阅读:215      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!