Tuesday, 27 January 2015

Android: Difference between Parcelable and Serializable?

  1. Parcelable is faster than serializable interface
  2. Parcelable interface takes more time for implemetation compared to serializable interface
  3. serializable interface is easier to implement
  4. serializable interface create a lot of temporary objects and cause quite a bit of garbage collection
  5. Parcelable array can be pass via Intent in android.

Speed Tests

Of course, we want to know how much faster Parcelable is.

No comments:

Post a Comment