<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div>Local imports are a really bad idea for code maintenance.<div><div class="h5"><div>
<br></div></div></div></div></blockquote><div><br></div><div>I know, and we have discouraged that in the past.</div><div><br></div><div>That is the reason I said "<span style="font-family:arial,sans-serif;font-size:13.333333969116211px">I think this work of identify big libraries used only in specific moments,</span></div>
<div style="font-family:arial,sans-serif;font-size:13.333333969116211px">can be applied in other cases."</div><div><br></div><div>In the case of gstreamer, used to do text to speech, almost the same code is copied</div>
<div>in a few activities (Speak, Clock, Memorize, Write, at least)</div><div>The code check if the espeak plugin in gstreamer is available, and if not try use espeak</div><div>in the command line. Then need initialize gstreamer, and look for the plugin.</div>
<div>That take a few seconds, and is not needed do it before the activity starts. </div><div><br></div><div>Then is not a case of import anything in any place, we need look at this carefully,</div><div>and see when have sense. I would love to find more ways to improve the performace</div>
<div>of Sugar and activities.</div><div><br></div><div>Gonzalo</div><div><br></div></div></div></div>