firstname.lastname@example.org (Geoffrey S Knauth) writes:
> I like Scheme, and I'm intrigued by the possibility of building
> intelligent CGI scripts using `scsh' in addition to Perl. In the FAQ
> I read that `scsh' start-up time was a little slow. Is it too slow
> for `scsh' to be used effective at hi-volume web sites (200,000 users) ?
Well, if your CGI script takes quite long to execute anyway, then
maybe the start-up time of scsh won't matter, but I doubt it: on my
unloaded Sparc 10, I measured (by hand) that the time required to
start scsh is around 2 seconds.
On the other hand, there may be a solution for you: the Scheme
Underground http server. It is an http server written on top of
scsh. If you replace your current http server with that one, the maybe
you could use a little trick: if you make sure that your scripts
aren't executed by forking a new scsh process every time, that is if
they execute as subroutines called from the http server, then it may
become fast (well, at least faster than the standard solution). This
shouldn't be too hard to do, although I can't be really sure because I
never used the server (I just read the source).
If you want to try this solution, then don't forget to take a look at
Shriram Krishnamurthi's notes about the SU http server:
Also, if you are patient, you may want to wait for the next version of
scsh which should be out RSN and *should* start faster, if I remember
Hope this helps,