Hi ,
We try to do preloading of the classes in the zygote to share them
between app processes.
But the time to do preload takes about 23 seconds, which is a
significantly long time.
I am trying to reduce Android boot time. I am thinking about
following approaches.
1: First of all , preloading of the classes is sequential , can we
not do that in parallel ?
We came across a discussion , where forking of a thread in Zygote
is a strict no no ....
"
http://osdir.com/ml/android-platform/2009-07/msg00271.html"
2: Also we preload the class only when as found in "$(MYDROID)/
frameworks/base/tools/preload
/WritePreloadedClassFile.java"
That is the list is created to optimize as much as possible both
the startup time of apps and
the per-process overhead of them.
Which means that we just can't go and cut down some of the
classes to reduce the boot time because then it will
significantly affect application launch time.
But can this list change based on my device configuration which
is having 1GHz CPU and much RAM? How?
3 : Can we create a service to do this in the background ?
But in this are the preloaded classes shared umongst the
different applications ?
ie : We try to preload the classes in Zygote just before it
forks so that the preloded classes will be in the shared
memory and hence every application will use classes the
same shared memory. But how can this be achieved
when we create a service in the background ?
Or any other options? approach? Your any help/pointers would be
appreciated.
Thanks,
Smital Desai
--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to
android-...@googlegroups.com.
To unsubscribe from this group, send email to
android-platfo...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/android-platform?hl=en.