On Nov 26, 2006, at 1310 , Sunny Hirai wrote:

[edited slightly]

> I want to [...] define many classes without having to
> worry about the overhead of having them defined at runtime for every
> page request.

This is done using FastCGI, SCGI or similar with persistent ruby  
processes.

> QUESTION 2
>
> I've found a lot of documentation on ERB but a lot less on eRuby. All
> the documentation I have found on eRuby has it executing from the
> command line or through a web server plugin, usually through  
> Apache. Can
> eRuby be called from inside Ruby to do parsing? I ask this because  
> eRuby
> seems like it would execute faster seeing it is built using C.

ERB and eRuby both generate ruby code which is then executed.  If you  
cache the generated code it won't make a difference (in the long run)  
which one you use.

-- 
Eric Hodel - drbrain / segment7.net - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com