Re: [Chicken-users] About peformance of user defined procedures

2011-08-01 Thread Jörg F . Wittenberger
just a wild guess: On Jul 31 2011, Pedro Henrique Antunes de Oliveira wrote: Hey. I have a file map.scm, which contais this code: (define (mymap1 op ls) (let loop ((ls ls) (acc '())) (if (null? ls) (reverse acc) (loop (cdr ls) (cons (op (car ls)) acc)

Re: [Chicken-users] About peformance of user defined procedures

2011-08-01 Thread Pedro Henrique Antunes de Oliveira
Interesting point. But I tried it out. In average, it took about the same amount of time (actualy this was about 0.1s slower). Maybe because the amount of time spent on binding arguments to parameters is larger than the amount of time of that (procedure? op). I've heard that some compilers can

Re: [Chicken-users] About peformance of user defined procedures

2011-08-01 Thread Jörg F . Wittenberger
On Aug 1 2011, Pedro Henrique Antunes de Oliveira wrote: Interesting point. But I tried it out. In average, it took about the same amount of time (actualy this was about 0.1s slower). Looking closer (since you made me curious); there is little magic about the definition of map as far as I