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.
精彩评论