Is Browse a lot slower to start on 0.100 vs 0.94 even if you drop the caches on both?<br><br>On Monday, 11 November 2013, Gonzalo Odiard  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have tried again cleaning the  kernel memory cache before each start<br>
as you suggested<br>
using <a href="http://www.linuxinsight.com/proc_sys_vm_drop_caches.html" target="_blank">http://www.linuxinsight.com/proc_sys_vm_drop_caches.html</a><br>
<br>
echo 3 > /proc/sys/vm/drop_caches<br>
sync<br>
<br>
The time advantage in Browse disappear :(<br>
<br>
In the Write activity not, but have more sense, because is not only importing<br>
but is using the library to locate the text to speech plugin, then is<br>
doing something.<br>
Maybe is time to add the tts functionality in the toolkit, too much<br>
code copied in the activities.<br>
<br>
Gonzalo<br>
<br>
<br>
On Sun, Nov 10, 2013 at 8:10 PM, Daniel Narvaez <<a href="javascript:;" onclick="_e(event, 'cvml', 'dwnarvaez@gmail.com')">dwnarvaez@gmail.com</a>> wrote:<br>
> On 11 November 2013 00:02, Gonzalo Odiard <<a href="javascript:;" onclick="_e(event, 'cvml', 'gonzalo@laptop.org')">gonzalo@laptop.org</a>> wrote:<br>
>><br>
>><br>
>><br>
>>> Local imports are a really bad idea for code maintenance.<br>
>>><br>
>><br>
>> I know, and we have discouraged that in the past.<br>
>><br>
>> That is the reason I said "I think this work of identify big libraries<br>
>> used only in specific moments,<br>
>> can be applied in other cases."<br>
>><br>
>> In the case of gstreamer, used to do text to speech, almost the same code<br>
>> is copied<br>
>> in a few activities (Speak, Clock, Memorize, Write, at least)<br>
>> The code check if the espeak plugin in gstreamer is available, and if not<br>
>> try use espeak<br>
>> in the command line. Then need initialize gstreamer, and look for the<br>
>> plugin.<br>
>> That take a few seconds, and is not needed do it before the activity<br>
>> starts.<br>
><br>
><br>
> I'm not sure to understand this, I should probably see the code.<br>
><br>
> But all that I'm saying is that gi.repository imports are supposed to have<br>
> virtually no performance impact, as we have also verified stracing. Big or<br>
> small library doesn't matter.<br>
><br>
> If they do have a performance impact we need to understand why, before<br>
> trying to work around the problem by moving imports around.<br>
</blockquote><br><br>-- <br>Daniel Narvaez<br><br>