axiom-developer
[Top][All Lists]
Advanced

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

[Axiom-developer] Re: [Axiom-mail] A slow summation


From: Waldek Hebisch
Subject: [Axiom-developer] Re: [Axiom-mail] A slow summation
Date: Sat, 16 Jun 2007 13:45:45 +0200 (CEST)

Camm Maguire wrote:
> Waldek Hebisch <address@hidden> writes:
> 
> > Bill Page wrote:
> > > On 6/15/07, Waldek Hebisch wrote:
> > > > On my machine, I get the following (on the second run, to
> > > > exclude time for loading):
> > > >
> > > >                                       gcl      sbcl          sbcl
> > > >                                              interpreted  compiled
> > > >  reduce(+,[1.0/i for i in 1..20000])   8.70      1.76        0.17
> > > >  [i for i in 1..20000];                6.23      0.78        0.01
> > > >  expand(1..20000);                     0         0.004       0.01
> > > >

> Can you possible provide the raw lisp code in use here?  I'd be happy
> to take a look.  

A little correction: it turned out that gcl evaluator is very fast,
faster than both clisp and sbcl interpreter.  Almost all gcl time
went into a single funtion:

(defun LIST2VEC (list) (coerce list 'vector))

This function was applied to the resulting list of length 20000 and
for some reason needed a lot of time.

-- 
                              Waldek Hebisch
address@hidden 




reply via email to

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