lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GUILE 2/3 and string encoding cost


From: David Kastrup
Subject: Re: GUILE 2/3 and string encoding cost
Date: Wed, 22 Jan 2020 23:43:36 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Han-Wen Nienhuys <address@hidden> writes:

> On Wed, Jan 22, 2020 at 10:53 PM Han-Wen Nienhuys <address@hidden> wrote:
>
>>
>>
>> On Wed, Jan 22, 2020 at 12:01 PM David Kastrup <address@hidden> wrote:
>>
>>>
>>> > So, what hard data do we have on GUILE 2/3 slowness, and what does
>>> > that data say?
>>>
>>> That data says "humongous slowdown".  There is not much more than
>>> speculation what this is caused by as far as I know.
>>>
>>
>> I can see the 2x slowdown, and it looks uniformly distributed over the
>> whole process. The GUILE 2.0 release
>>
>
> Actually, the I was comparing the -O2 build with the -O0 build.
>
> When recompiling, the Scheme init (reading .scm files) takes 0.31s in 1.8
> vs. 2.7s in 2.0, a 9x slowdown.

The Guile-2 compiler is doing a lot of optimisations, and LilyPond's
startup code switches off byte compilation because the dependencies are
hard to get under control.  The current codebase at least manages to
avoid to compile code with as-yet undefined macros, something that
Guile-1.8 had no problems with but Guile-2.0 refuses.

So the Scheme loading speed is sort-of expected due to Guile relying on
byte compilation for speed and we switch it off.

-- 
David Kastrup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]