From: John Joyner Date: 2007-06-23T23:28:04+09:00 Subject: Re: Performance: Module vs Class John N. Joyner wrote: > Is there a significant performance difference between these two ways to > call a method? > (a) Define the method in a module, then call it with > MODULE_NAME::METHOD_NAME > (b) Define the method in a class, then instantiate an object from the > class, then call the method with OBJECT_REFERENCE_VAR.METHOD_NAME > > Purely for the convenience in naming methods, I'd love to do everything > in classes, but I can't help suspecting that performance will suffer > somewhat if I instantiate objects when not really necessary. Apologies! I had meant to start a new thread. - John -- Posted via http://www.ruby-forum.com/.