Bill Allombert on Sat, 01 Apr 2023 10:37:07 +0200


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

Re: Fwd: Speed versus clarity


On Thu, Mar 30, 2023 at 08:53:18PM +0200, Oliver Bandel wrote:
> Quoting  Steve <global@jamasaru.com> (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.