From: Robert Klemme Date: 2008-02-20T21:16:37+09:00 Subject: Re: Need Help With OptionParser 2008/2/20, 7stud -- : > Robert Klemme wrote: > > 2008/2/20, 7stud -- : > >> I see several problems with that solution: > > > >> 2) It uses the try/except mechanism which slows down your program when a > >> exception actually occurs. > > > > Options are only parsed once per invocation. The exception time is > > easily dominated by process exec time and the runtime of the wrapped > > program. > > > > > Options are only parsed once per invocation. > > What's an invocation, and what's that go to do with anything? Process invocation in this case. > > The exception time is > > easily dominated by process exec time and the runtime of the wrapped > > program. > > I don't know what that means. Are you saying that if the program runs > for an hour, the extra exception processing time only takes an > additional 15 seconds? Apart from the fact that processing a single exception uses less than 15 seconds, yes. The exception processing time is negligible compared to the time necessary for exec and for running the wrapped program. Cheers robert -- use.inject do |as, often| as.you_can - without end