jed-users mailing list

[2003 Date Index] [2003 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: API


"John E. Davis" <davis@xxxxxxxxxxxxx> wrote:
> Joerg Sommer <joerg@xxxxxxxxxxxx> wrote:
>>But why I got so different timings in <slrnbh5etp.1l1.joerg@xxxxxxxxxxxx>?
> 
> This was addressed recently.  See
> 
>   http://www.ruptured-duck.com/jed-users/msg00402.html
> 
> for the explanation.

Did you pick the wrong link?

The different timings aren't between the jed version. I've made a test
between direct call of "()=up(1);()=down(1);" and go_{up,down}_1().

This is the point I'm interessted in: Is the memory gain of small helpers
greater or lesser than the speed gain? And
<slrnbh5etp.1l1.joerg@xxxxxxxxxxxx> shows, that go_{up,down}_1 takes two
time as much as ()={up,down}(1). So I would pick the up(), down(),
because it's easier to extend memory then get more cpu speed.

#v+
$ xjed -batch -n -f "evalfile(\"/tmp/test_test.sl\")"
go_ud_1: loop: 4.22, eval: 0.00
direct: loop: 2.76, eval: 0.00
$ jed -batch -n -f "evalfile(\"/tmp/test_test.sl\")"
go_ud_1: loop: 4.25, eval: 0.00
direct: loop: 2.78, eval: 0.00
#v-

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2003 date index] [2003 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]