Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: blmblm@myrealbox.com Newsgroups: comp.lang.java.programmer Subject: Re: StringBuilder Difficulties Date: 5 Jul 2011 19:09:46 GMT Organization: None Lines: 60 Message-ID: <97h5rqFhaeU2@mid.individual.net> References: <9796kgFoijU3@mid.individual.net> <0uk317l9064bd4uaa8m8tckpvks41d7jti@4ax.com> X-Trace: individual.net 3wEfJBu2KvMpzuvZFarQUwkhQgScBQtVLjfWQP9bd0MKnMrL3C X-Orig-Path: not-for-mail Cancel-Lock: sha1:pPcJVWeVwQI9QhSJo01b7U9XjWU= X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5862 In article <0uk317l9064bd4uaa8m8tckpvks41d7jti@4ax.com>, Gene Wirchenko wrote: > On 2 Jul 2011 18:33:52 GMT, blmblm@myrealbox.com > wrote: > > >In article , > >Gene Wirchenko wrote: > > [snip] > > >> Oh, I asked about that. One apparently can not pass a function > >> pointer parameter as in C. The ways that were posted involved lookup > >> every time AFIACS and I judged that it might swamp what I was > >> measuring (checking if a character were in a set). So, to my chagrin, > >> I had to go with cut-and-paste. > > > >Without experimenting to find out, of course .... > > You are putting the cart before the horse. > > THE WHOLE POINT of this exercise was experimentation to test the > speed of the lookup. Until I got the code I was asking about running, > of course, I would not know. Maybe I misunderstood what you meant by "lookup" above -- I understood you to be referring to whatever has to be done to find the method to be called, as opposed to looking up individual characters in a list/set. As far as I can tell, your benchmark concerns different approaches to the latter, but assumes that looking up the method (i.e., using the Java substitute for function pointers) will somehow skew the results to the point where it shouldn't/can't be used. (You may actually be right about that, much as it pains me to say so, because all that duplicate code is, in my opinion and possibly yours as well, both aesthetically displeasing and a source of potential trouble.) > [snip] > > >> I am pretty much past the intro stage and into the pain stage > >> where there is not so much help. > > > >That people are not willing to offer further help when many of their > >previous suggestions have been rejected should not be a total surprise. > > > > My phrase "not so much help" does not refer to this newsgroup. > You can find texts and Websites on starting with Java. There is also > advanced material. In the middle is a sour spot. I am at the low end > of that sour spot. Ah. Interesting. I don't seem to have a clear memory of how I got from the beginning level to wherever I am now (intermediate?). I do remember, though, learning quite a bit from following semi-random discussions in this newsgroup. But that was, hm, a decade or so ago, and it's not clear it would still work. -- B. L. Massingill ObDisclaimer: I don't speak for my employers; they return the favor.