开发者

Serialize faster in Android

Android serialization is slow. Is there some lib, that is able to serialize / deserialize faster? Without the need to write extra code in the serialized classes开发者_JAVA技巧 (eg annotations).


I know this is late but Parcelable is your friend.


Are you using Java Default Serialization?

If yes, then there is ample opportunity that you can get performance benefit by using Java Custom serialization.

Quick check if you can benefit from custom serialization Is physical representation of data you are trying to persist similar to Logical Representation.

If answer to above question is no, then you should consider using custom serialization. And no matter which framework/api you use, this rule will apply.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜