Shall we drop resources ?
Jean-Pierre Chrétien
jeanpierre.chretien at free.fr
Thu May 14 20:29:00 UTC 2020
Le 14/05/2020 à 20:42, Jean-Marc Lasgouttes a écrit :
> Le 14/05/2020 à 18:16, Jean-Marc Lasgouttes a écrit :
>> I only noticed now that Resources have been made useless just 3 days after
>> there were introduced at 33e397dff8792c.
>>
>> This is the result of this thread:
>> https://marc.info/?l=lyx-devel&m=119283257516050&w=2
>>
>> What I do not understand is why André did not complain more a the time. As it
>> is now, resources are never used, since the filesystem is looked at first.
>
> On a SSD drive (after a reboot), launching lyx creating an empty formula and
> quitting leads to the following timing for the iconName() function alone.
>
> tanuki: src/lyx
> #pmprof# iconName: 180.96 us, count=235, total=42.52 ms
>
> If I remove the search in the file system (and thus force use of resource), I get:
>
> tanuki: src/lyx
> #pmprof# iconName: 13.96 us, count=234, total=3.27 ms
>
> So, using resources is 15x faster, but the total time of 40ms is barely noticeable.
>
> What would be interesting though is to try that on an older computer with
> mechanical hard drive. Is there someone with such a disabled machine ?
My computer uses mechanical drives all right, and runs an AMD biprocessor since
2009. Does it seem enough disabled for a test ? If so, what should I do exactly ?
--
Jean-Pierre
More information about the lyx-devel
mailing list