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:
> half the byte-code for a compiled function.  That is, the use of these
> functions means less memory is used.  The trade-off, as you noted is
> that there is a small amount of function call overhead.

But why I got so different timings in <slrnbh5etp.1l1.joerg@xxxxxxxxxxxx>?

> In addition to the memory savings, there is another advantage to using
> the functional form that one may or may not use, e.g.,
> 
>    define do_something_n_times (something, n)
>    {
>       loop (n) (@something)();
>    }
>    
>    do_something_n_times (100, &newline);
> 
> I hope this provides some insight into the existence of these functions.

I am confused. Why this saves memory and speed? What makes slang with
this? Other languages know inlineing and such things, but here these are
fatal.

Joerg.

--------------------------
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]