[sugar] [PATCH] Update only when visible (Journal)

Tomeu Vizoso tomeu at tomeuvizoso.net
Mon May 19 16:17:42 EDT 2008


Hi,

during activity launching, a new journal entry is created. As the
journal is listening for changes in the DS and updating its UI
accordingly, if that update operation is costly in terms of CPU, the
activity startup process can be affected.

This patch avoids the journal updating itself when it is not the
active activity, and in tests with 3500 entries, I saw a saving of 3s.
during activity startup.

Thanks,

Tomeu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Update-only-when-visible.patch
Type: text/x-patch
Size: 11516 bytes
Desc: not available
Url : http://lists.laptop.org/pipermail/sugar/attachments/20080519/397a9384/attachment.bin 


More information about the Sugar mailing list