[sugar] abiword, possible memory consumption reduction

Marco Pesenti Gritti mpg
Fri Jan 12 04:46:19 EST 2007


On Fri, 2007-01-12 at 08:25 +0100, Robert Staudinger wrote:
> Hi,
> 
> as you may know abiword has a good deal of infrastructure that needs
> to be in place before the editing canvas can be used. Libabiword users
> therefore have to call libabiword_init() before creating the first
> "abiwidget". A libabiword_shutdown()[1] call is provided as well.
> 
> Now, is it possible to track the number of open activities of the same
> class in sugar? If so, libabiword could be initialised and shut down
> on demand. I suspect that _shutdown() is not called at the moment.
> 

The easier way to do this is probably to use start/stop functions inside
the main class .py. A bit of an hack but it should work... see how the
web activity does it.

Marco



More information about the Sugar-devel mailing list