Probably is a big NO, but a possible solution is place the costly import in the code what need it.....<br>Then will be executed only if the coded is used.<br><br>Gonzalo<br><br><div class="gmail_quote">On Wed, Oct 20, 2010 at 8:52 PM, David Farning <span dir="ltr"><<a href="mailto:dfarning@gmail.com">dfarning@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Wed, Oct 20, 2010 at 6:21 PM, Bernie Innocenti <<a href="mailto:bernie@codewiz.org">bernie@codewiz.org</a>> wrote:<br>

> On Wed, 2010-10-20 at 19:59 +0530, Ayush Goyal wrote:<br>
>> @@ -69,10 +69,12 @@ import os<br>
>>  import tempfile<br>
>>  import math<br>
>>  import pango<br>
>> +import numpy<br>
><br>
> Does Paint already use numpy elsewhere?<br>
><br>
> If not, we should try to avoid this dependency, as numpy takes several<br>
> seconds to load on the XO-1 and also wastes a lot of memory.<br>
<br>
</div>For a bit of context.... Sugar is designed to run on low end hardware<br>
to keep hardware costs down while extending battery life.<br>
<br>
There is often a trade off between adding functionality and increasing<br>
time and/or space footprint.  Thus, anything which increases<br>
footprint, 'the cost', must be justified by improving functionality,<br>
'the benefit'.<br>
<br>
david<br>
_______________________________________________<br>
Dextrose mailing list<br>
<a href="mailto:Dextrose@lists.sugarlabs.org">Dextrose@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/dextrose" target="_blank">http://lists.sugarlabs.org/listinfo/dextrose</a><br>
</blockquote></div><br>