[sugar] abiword, possible memory consumption reduction
Robert Staudinger
robert.staudinger
Fri Jan 12 08:30:23 EST 2007
On 1/12/07, J.M. Maurer <uwog at uwog.net> wrote:
> On Fri, 2007-01-12 at 13:07 +0100, Robert Staudinger wrote:
> > On 1/12/07, Marco Pesenti Gritti <mpg at redhat.com> wrote:
> >
> > [...]
> >
> > > 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.
> >
> > I have committed the functions abiword.init() and abiword.shutdown()
> > to pyabiword. Could anyone familiar with sugar update the activity?
>
> What does this actually do ?
>
> Also, say we start an activity twice in the old situation, would that
> load libabiword twice?
The problem is that the global abiword App instance is not shut down.
Some more elaborate testing however showed that repeated calls to
initialize() and shutdown() lead to crashes (apparently some issue
related to static variables that are repeatedly initialised).
So please refrain from calling abiword.init() / abiword.shutdown()
from python for now.
- Rob
More information about the Sugar-devel
mailing list