Carl Sorensen <[email protected]> writes:

> On 11/18/16 2:46 AM, "David Kastrup" <[email protected]> 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.

-- 
David Kastrup

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to