From: Austin Ziegler Date: 2003-04-12T01:40:57+09:00 Subject: Re: Need IO Optimization help On Fri, 11 Apr 2003 19:59:28 +0900, Brian Candler wrote: > But Ruby has some fundamental disadvantages compared to Perl for > this sort of program. For example, count += 1 requires a method > dispatch, I've been thinking about this a bit since the last time the "++" debate came up; the primary use for "++" is "count += 1", at least in Ruby and Perl; might there be a call for a "Counter" class that performs a similar purpose, but keeps the counting internal until #value is called? I'm not in a position to be able to write an extension that does this at this point, but I'm wondering if it would be faster than using Fixnum#+ and object assignment. -austin -- Austin Ziegler, austin@halostatue.ca on 2003.04.11 at 12:28:59