![]() |
2010-08-23
, 12:04
|
Posts: 2,829 |
Thanked: 1,459 times |
Joined on Dec 2009
@ Finland
|
#2
|
![]() |
2010-08-23
, 12:05
|
|
Posts: 1,391 |
Thanked: 4,272 times |
Joined on Sep 2007
@ Vienna, Austria
|
#3
|
![]() |
2010-08-23
, 12:18
|
Posts: 263 |
Thanked: 108 times |
Joined on May 2008
|
#4
|
microb launches fast because it preloaded. IIRC You can unload it with browser switcher app.
And about launch speed. Sadly they seem all bit slow (what is slow?, well to me itīs app that doesn't start in 1-2s to point where you can interact with it) to start. At least currently apps that have been made with python.
I doubt that you gain any speed increase from unloading microb. Best thing probably is to keep those programs running that you want to access fast.
![]() |
2010-08-24
, 19:49
|
Posts: 263 |
Thanked: 108 times |
Joined on May 2008
|
#5
|
Won't be too difficult - just hide the main window on a destroy event (to talk in GTK+ terms) and re-show it on a D-Bus signal (i.e. when it's activated from the application manager). The only problem is that the app has to be coded to not cause unnecessary wake-ups when running in "hidden" mode and it could lead to a problem with memory consumption, as "hidden" apps still reside in memory, even if they are swapped out to swapspace.
MeeGo Touch will provide something like this built-in:
http://apidocs.meego.com/mtf/namespa...f36522ced5ffff
(it's called "prestart mode" or "lazy shutdown" there)
You can set it on MApplication:
http://apidocs.meego.com/mtf/class_m...4c965367ca7c77
AFAIK the "prestart" mode (loading before first use) is limited to built-in apps, but lazy shutdown (keeping in memory after first use) could be possible on MeeGo.
For Maemo, it's possible - it's just a matter of where it makes sense and then of implementing it. Here's how you would do it:
- Connect to the destroy event of your main window - return TRUE and hide the main window
- Make a D-Bus service for your application, add a "show_gui" method or something that simply shows the main window when called
- Make the launcher script of your app call "show_gui" if the app is already running, otherwise launch the app normally
![]() |
2010-08-24
, 23:27
|
Posts: 263 |
Thanked: 108 times |
Joined on May 2008
|
#6
|
![]() |
2010-08-24
, 23:31
|
|
Posts: 670 |
Thanked: 359 times |
Joined on May 2007
|
#7
|
![]() |
2010-08-25
, 01:12
|
Posts: 263 |
Thanked: 108 times |
Joined on May 2008
|
#8
|
![]() |
2010-09-02
, 11:52
|
Posts: 263 |
Thanked: 108 times |
Joined on May 2008
|
#9
|
![]() |
2010-09-02
, 17:01
|
Posts: 388 |
Thanked: 842 times |
Joined on Sep 2009
@ Finland
|
#10
|
The point is that 60% of the time it is around 60-70%, so I think there's room for something more.. also, there's a lot of swap space too, wich I know its not RAM...
Is there anyone here with a good knowledge about Maemo wich can make certain apps comes "pre-loaded" or closing making it sleep and vanishes from dashboard BUT stilll running (when you load it again by apps menu, it'll show again, like the MicroB, for example)?
It would be great to see quicker startup on some selectable apps as my RAM is always at 40%-50%, it think we could use it more.
Also, I see a lot of delay using the internal/external memory, it seems that most of the device lag comes from I/O, wich I suppose that doesn't happen in RAM's I/O.
Well, just an idea, lets discuss.