Re: Fwd: Speed versus clarity

Bill Allombert <[email protected]>
Newsgroups gmane.comp.mathematics.pari.devel
Message-ID <ZCfs5+dMCFy5r/wh@seventeen>
On Thu, Mar 30, 2023 at 08:53:18PM +0200, Oliver Bandel wrote:
> Quoting  Steve <[email protected]> (snt: 2023-03-29 02:41 +0200 CEST) (rcv: 2023-03-29 02:42 +0200 CEST):
> > Greetings, number theory maniacs!
> > 
> > In general, is the coding style of Pari meant to be biased towards clarity
> > or towards performance? Obviously there's a continuum, but the Pari project
> > itself might prefer cleaner elegant code over most performant just for
> > maintenance and readability.
> 
> I'm not the one who can answer your PARI-related questions, but in
> general I would prefer code clarity over speed optimization in most
> cases.

For what is worth, it is not at all how PARI has been written historically.
But code clarity and speed optimization are not in opposition.

However we always tried to avoid large hard-coded tables.

Cheers,
Bill.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.