From: Robert Klemme Date: 2008-02-20T22:12:27+09:00 Subject: Re: Need Help With OptionParser 2008/2/20, 7stud -- : > Robert Klemme wrote: > > 2008/2/20, 7stud -- : > >> > > >> > > >> > 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. > > > How do you know there won't be 40 million exceptions? Would process > exec time and the runtime of the wrapped program dominate the exception > time in that case? Yes, because you get at most 1 exception per process invocation - so there must be 40 million process invocations which are several orders of magnitude more expensive than the exception processing. robert -- use.inject do |as, often| as.you_can - without end