We have found the problem, and it was not ERuby. Our server guy forgot to
tell the Linux box that we were running on how much RAM it had, so it was
running on 14MB, causing Ruby to run slow. Thanks for your help.

-----Original Message-----

On Tuesday 22 October 2002 12:58 pm, Peter Pallock wrote:
> We have been running eruby for a couple of months now, and have found that
> it is extremely slow, taking up to a minute to load a simple page.
>
> Having run the ruby profiler, I have found that the two things that take
> the longest time are: #toplevel and Kernel.require.
>
> Being relatively new to Ruby, I am wanting to confirm what #toplevel is.
If
> I understand correctly, #toplevel is just any code that runs without being
> in a class, method, or other type of "container", if you will.
>
> I am also wondering about the Kernel.require speed; is that just because
it
> is accessing the file system? It looks like eruby.import commands take
> about as long.
>
> Thanks for your help.
>
> Peter Pallock

Up to a *minute*? That seems a little excessive for a simple page; I ran
eRuby 
for well over a year w/out any similar problems (I currently recoding in 
amrita).  Can you post some example code with timing?

~ Bruce