From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 107e1d,8ed7a0f640cd4797 X-Google-Attributes: gid107e1d,public X-Google-Thread: 103376,b97e032d415cd01a X-Google-Attributes: gid103376,public From: DELCOURT J�r�me Subject: Re: Multiprecisions numbers Date: 2000/04/01 Message-ID: <38E6EDE8.6AC1@club-internet.fr>#1/1 X-Deja-AN: 605391551 Content-Transfer-Encoding: 7bit References: <38E5A2FD.63BD@club-internet.fr> <8c36au$cm5$1@wanadoo.fr> <38E5BFDD.AB9ED487@maths.unine.ch> Content-Type: text/plain; charset=us-ascii X-Trace: front4m.grolier.fr 954621993 19162 195.36.153.216 (1 Apr 2000 20:46:33 GMT) Organization: Votre soci�t� Mime-Version: 1.0 Reply-To: sikander@club-internet.fr NNTP-Posting-Date: 1 Apr 2000 20:46:33 GMT Newsgroups: comp.lang.ada,fr.comp.lang.ada Date: 2000-04-01T20:46:33+00:00 List-Id: Gautier wrote: > > Pascal Obry: > > > Do you have some benchmarks about the relative speed of these > > implementations ? > > This would be very interesting (not time and equipment myself now) > E.g. GMP and other known packages, being in C, must allocate, reallocate, > deallocate memory for multi-integer. It consume time and the memory > gets fragmented very fast, requiring garbage collection that can take > longer than the computing itself. Reversely, pure Ada methods where functions > can return a whole unconstrained array, can work only on stack with > local variables. Anyway, using the "procedure with out parameter" variants > give very quick results on OpenVMS (Compaq Ada V3.5-2) and PC (GNAT/DOS). > No comparisons though from my side. > > _____________________________________________ > Gautier -- http://members.xoom.com/gdemont/ You can find packages in ada about multiprecision numbers at http://www.chez.com/bignumber/index.html. Jerome Delcourt