lilypond-user
[Top][All Lists]
Advanced

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

Re: Solution to 7 over sqr(71) time against integer polyrhythms


From: Carl Sorensen
Subject: Re: Solution to 7 over sqr(71) time against integer polyrhythms
Date: Fri, 18 Nov 2016 18:22:56 +0000
User-agent: Microsoft-MacOutlook/14.7.0.161029


On 11/18/16 8:11 AM, "David Kastrup" <address@hidden> wrote:

>Carl Sorensen <address@hidden> writes:
>
>> On 11/18/16 2:46 AM, "David Kastrup" <address@hidden> wrote:
>>
>>>
>>>
>>>GMP is already linked into Guile exactly for that purpose.  It would not
>>>really make a lot of sense to use it independently.
>>
>> You are certainly more qualified than me to comment on this.  However,
>> it appeared to me that using the C++ interface to GMP allowed the
>> memory allocation problem to be handled more easily from C++.  But I
>> haven't tried any of it.
>
>It would cause a lot of additional heap churn for passing around the
>Rational type (it is usually passed by value rather than by reference).
>Using Guile instead would mean that only references (namely an Scm
>value) are passed around which do not require allocation/deallocation
>for multiple "copies".
>
>We really don't want to open the can of worms of an additional memory
>management subsystem.

That makes sense.

Thanks for enlightening me.

Carl




reply via email to

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