Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Gene Wirchenko Newsgroups: comp.lang.java.programmer Subject: Re: Passing a Method Name to a Method, Redux Date: Fri, 24 Jun 2011 11:45:53 -0700 Organization: A noiseless patient Spider Lines: 49 Message-ID: References: <1lu707p0cpr9vhrpv51d7hmst6bt1qdbcv@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: mx04.eternal-september.org; posting-host="7Qrvczazr82YckO5XW8Vtw"; logging-data="7987"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Qyar3IZ3xXSX+Vla8m31j0cOvG0gD77w=" X-Newsreader: Forte Agent 4.2/32.1118 Cancel-Lock: sha1:YNK9dgqP4RVnEAQC178rY1N1IdQ= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5651 On Thu, 23 Jun 2011 21:02:59 -0700, markspace <-@.> wrote: >On 6/23/2011 7:48 PM, Gene Wirchenko wrote: >> On Thu, 23 Jun 2011 18:30:21 -0700, markspace<-@.> wrote: >> >>> Some other things I'd do: >> >>> 1. Make life easier on the Mark I eyeball and print out your timing in >>> seconds: >>> >>> System.out.println( " Duration=" + (Duration/1e9) ); >> >> Yes, if this were not just test code. > >Test code is probably more important to get right than the actual >production code. You'll be using the test code more than the production. ;) No. I expect that I will be using the resulting preprocessor for years. The test code will be tossed shortly. >I have another question. This code here, most of this is debugging? >And you take the entire string and concatenate the characters together, >but you don't actually parse this into tokens: Yes, I do. The only tokens that I am interested in are identifiers. [snip] >Your just double checking that SequentialSearch and TreesetSearch return >the same thing? And you concat the whole cParseString into cIdent, you >don't look for white space or anything and break cParseString into tokens? No. I am just after the timing. The only tokens that I am interested in are the identifiers. The identifiers are defined as sequences of characters in IdentChars or IdentCharsSet. The rest of the input will be echoed. >Don't worry about Hash Test, I have something faster now. But *I* want something faster. That was the whole pioont of this testing: to find out which way was fastest. [snip] Sincerely, Gene Wirchenko