emacs-devel
[Top][All Lists]
Advanced

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

Re: Bignum performance (was: Shrinking the C core)


From: Mattias Engdegård
Subject: Re: Bignum performance (was: Shrinking the C core)
Date: Fri, 11 Aug 2023 16:14:07 +0200

11 aug. 2023 kl. 12.27 skrev Ihor Radchenko <yantar92@posteo.net>:

> Most of the time is spent in (1) GC; (2) Creating bigint:

This is well known. The reason for bignums being in Elisp is because their very 
presence is helpful in several ways. They really only need to be correct; speed 
is a secondary concern (and GMP is actually overkill; mini-GMP is fine).

I'm not aware of any useful Elisp code that is bignum-intensive. The nearest is 
perhaps using Calc for certain kinds of algebraic operations but even there, 
bignums are rarely a significant performance factor.

Making the allocator and GC faster in general is useful since it benefits 
everything. Just speeding up bignums, not so much.




reply via email to

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