slang-users mailing list

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

Re: What's faster ?


Richard van Zon <rvanzon@xxxxxxxxxxxx> wrote:
>I wonder what is faster/more efficient and how much the gap is between
>accessing the function arguments directly like
>
>int func(int *arg1,int *arg2)
>{
>   printf("%d %d",*arg1,*arg2);
>}
>
>or with pops
>
>int func()
>{
>   printf("%d %d",SLang_pop_integer(),SLang_pop_integer());
>}

For the last one, you mean:

    (void) SLang_pop_integer (&x);
    (void) SLang_pop_integer (&y);
    printf("%d %d",x,y);

In any case, I do not think that you will be able to detect any
difference between the two functions.

--John



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