emacs-devel
[Top][All Lists]
Advanced

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

Re: Using the GNU GMP Library for Bignums in Emacs


From: Stefan Monnier
Subject: Re: Using the GNU GMP Library for Bignums in Emacs
Date: Fri, 27 Apr 2018 12:08:15 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>   > I think Emacs should move in this direction: define `eq` to be the same
>   > as `eql`, then check every use of EQ in the C code to see if it will
>   > necessarily behave identically to "EQL" and where it doesn't, replace it
>   > with EQL.
>
> This is a lot of work and will slow down some loops.

It's hard to tell without measuring it first.  And I'd expect that
many/most of those loops can be made fast anyway (e.g. member/memql can
delegate to `memq` when the argument is such that eq/eql/equal behave
identically).

> I would rather try the obvious approach: eq treats bignums like floats.

While I'm writing this within the GMP thread, it's orthogonal.


        Stefan




reply via email to

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