Andreas Voegele <voegelas@gmx.net> writes:
> I've got a rather slow computer running GNU/Linux and scsh 0.6.4.
> Scsh programs take much more time to startup when I use (open
> scheme-with-scsh) instead of (open scsh scheme). Here is an example
> program:
>
> #!/usr/local/bin/scsh \
> -dm -m hello -e main -s
> !#
> (define-structure hello (export main)
> (open scsh scheme)
> ;(open scheme-with-scsh)
> (begin
> (define (main . args)
> (display "hello, world")
> (newline))))
>
> And here are the results that the time command outputs:
>
> With (open scheme-with-scsh):
>
> real 0m5.414s
> user 0m4.880s
> sys 0m0.420s
>
> With (open scsh scheme):
>
> real 0m0.525s
> user 0m0.130s
> sys 0m0.320s
>
> Does anyone know why the program needs almost 5 seconds to startup
> when I use (open scheme-with-scsh)?
I can reproduce this:
# time scsh -o scheme-with-scsh -c 1
0.151u 0.022s 0:00.17 100.0% 205+25541k 0+0io 0pf+0w
# time scsh -c 1
0.014u 0.007s 0:00.02 50.0% 456+59124k 0+0io 0pf+0w
but I have no clue very it comes from. I'll try to take care of this
within the next few days.
--
Martin
|