We were wondering if, when using the Bundle with serializable or legible objects, when does sorting actually happen? Once you put it in a bunch? Since bundles are mainly used to simply transfer data between two screens (we are not even talking about IPC here!), It seems that there isnβt much point in sorting an object since it remains in memory all the time, no
Do we assume that marshalling (whether it is Java serialization or Android parking) occurs only if
- data must be transferred to another process, for example. during RMI or
- component (activity or service) is destroyed, and the state of the instance should be written to disk?
I saw the developers of the Android framework (I believe it was Dianne Hackborn) say that instead of Serializable , you should use Parcelable , because the first is much faster. How much faster? And will it even matter if the object is not sorted in most cases in any case (assuming that our assumptions about this were correct)?
android serializable marshalling bundle parcelable
Matthias
source share