- Subject: Re: make_ini and autoload [was: Re: rst mode with tokenlist navigator]
- From: "John E. Davis" <davis@xxxxxxxxxxxxx>
- Date: Wed, 10 May 2006 19:07:22 -0400
Marko Mahnic <marko.mahnic@xxxxxxxx> wrote:
> % csvutils.sl
> "buffer_compress";
> "spaces2tab";
> "format_table";
> "goto_max_column";
> "format_table_rect";
> loop(5) autoload( (), "M:\\jed\\libjmr\\csvutils.sl");
>
>I think this version pops a value from stack, then pushes
>two values to the stack, so it is slower than _autoload(5).
>To speed things up you can rewrite it as
>
> loop(5) { "M:\\jed\\libjmr\\csvutils.sl"; autoload(); }
I think that a cleaner approach would be to use array_map:
array_map (Void_Type, &autoload,
["buffer_compress", "spaces2tab", "format_table",
"goto_max_column", "format_table_rect"],
"M:\\jed\\libjmr\\csvutils.sl");
--John
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2006 date index]
[2006 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]