On Mon, Nov 24, 2008 at 2:46 AM, Guillaume Perrot <[EMAIL PROTECTED]>wrote:
> Why the dalvik VM does not simplify the serialization mechanism to use > the same implementation as Parcelable ? > Using Parcelable is not convenient compared to Serializable (just have > to implement it and specify which fields are transient), is there a > reason to keep Serializable as slow as J2SE ? Serializable is slow largely because it is super general and completely deals with backwards compatibility, object references, automatically saves fields for you (reflection is slooow), etc. Parcelable is fast because it does none of these things, and thus is only suitable for IPC and not persistent storage. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

