[Dextrose] [PATCH Paint Activity v3] Added Invert Color Effect to Paint Activity (OLPC #2495)

Gonzalo Odiard gonzalo at laptop.org
Wed Oct 20 22:38:26 EDT 2010


Probably is a big NO, but a possible solution is place the costly import in
the code what need it.....
Then will be executed only if the coded is used.

Gonzalo

On Wed, Oct 20, 2010 at 8:52 PM, David Farning <dfarning at gmail.com> wrote:

> On Wed, Oct 20, 2010 at 6:21 PM, Bernie Innocenti <bernie at codewiz.org>
> wrote:
> > On Wed, 2010-10-20 at 19:59 +0530, Ayush Goyal wrote:
> >> @@ -69,10 +69,12 @@ import os
> >>  import tempfile
> >>  import math
> >>  import pango
> >> +import numpy
> >
> > Does Paint already use numpy elsewhere?
> >
> > If not, we should try to avoid this dependency, as numpy takes several
> > seconds to load on the XO-1 and also wastes a lot of memory.
>
> For a bit of context.... Sugar is designed to run on low end hardware
> to keep hardware costs down while extending battery life.
>
> There is often a trade off between adding functionality and increasing
> time and/or space footprint.  Thus, anything which increases
> footprint, 'the cost', must be justified by improving functionality,
> 'the benefit'.
>
> david
> _______________________________________________
> Dextrose mailing list
> Dextrose at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/dextrose
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/dextrose/attachments/20101020/83d3a9c7/attachment-0001.html>


More information about the Dextrose mailing list