From: Gabriel Emerson Date: 2003-02-19T05:29:16+09:00 Subject: Re: speedycgi/pperl equivalent? It sounds kind of neat, like a more automagic fastcgi. I don't think that Ruby has anything like this currently. Your options are fastcgi, modruby, or webrick pretty much if you want to benefit from a persistent interpreter. As far as pre-"compilation" of scripts, Ruby doesn't have anything like that afaik, aside from something like bRuby, but I don't know how fast that is or if anyone is using it for this purpose (dumping the AST so it can be reloaded), like .pyc files in Python. Are you interested in porting it? --Gabriel On Wed, 19 Feb 2003 04:31:33 +0900, David Garamond wrote: > Is there an equivalent of SpeedyCGI or PPerl for Ruby? > > http://daemoninc.com/SpeedyCGI/ (a.k.a. PersistentPerl) > http://search.cpan.org/dist/PPerl/PPerl.pm > > They work by changing the #!/usr/bin/perl line to #!/usr/bin/speedy or > #!/usr/bin/pperl. The replacement version embeds the Perl interpreter. > The first time it's run, it loads the interpreter, compiles the script, > and daemonizes itself after establishing a Unix socket (or TCP listening > socket). Then the second time the binary is run it will detect that the > daemon already exists and then just run the already-compiled script in > the daemon process, communicating through the socket. > > So in effect it is like FastCGI, but without the web/CGI-like protocol > stuff. To use PPerl/SpeedyCGI, just replace the shebang line. > > -- > dave