On Tue, Mar 18, 2008 at 02:17:22AM +0900, Gerardo Santana G?mez Garrido wrote:
> On Mon, Mar 17, 2008 at 12:42 PM, Marc Heiler <shevegen / linuxmail.org> wrote:
> > Anyone of you has a few hints on how to speed up ruby code?
> >  (Note - not writing it, but running it ;-) )
> >
> >  I only have a few hints, like 5... would love to extend it.
> 
> When generating text output, using StringIO is faster than using puts

This doesn't make sense.  One can easily call #puts on a StringIO
object.

Do you have a concrete example/benchmark that demonstrates the
difference?

Paul