Topic: Advice for speed
For the record, I am brand new to Ruby and web development in general. I am running a webpage based on a ruby script embedded in html. There are four graphs of data (amcharts) on the page, and each is driven by its own script, for log file parsing and graph building. The scripts each take about 2-3 seconds just to initialize:
With about 8 scripts running, this means the page takes over 16 seconds to load, and this is wayyy too long, considering the data must refresh every minute. Is there any way to initialize the scripts globally, so I don't have to initialize for each script? Or is there another way to make this faster (precompiling, perhaps)?