From: Julian Leviston Date: 2009-02-06T22:10:47+09:00 Subject: Re: Using a Class (not an instance) into threads What do you mean by faster? For who? Blog: http://random8.zenunit.com/ Learn rails: http://sensei.zenunit.com/ On 06/02/2009, at 9:23 PM, Iñaki Baz Castillo wrote: > 2009/2/6 Simon Krahnke : >>> Also, using a Class instead of instances is faster since there is no >>> need of "initialize" for each usage, am I right? >> >> I don't quite understand that question. Classes are instances, too. >> And >> objects without state don't need an initialize method. > > Exactly, but in my case, if I'd use objects then I would need > "initiate" method, so in my particular case it is faster to use a > Class. Note that the Class code is initiated during class loading, > since it's an unique instance. I hope I'm right. > > > -- > Iñaki Baz Castillo > >