Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!news2.arglkargh.de!news.karotte.org!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: 8 Jul 2011 17:44:16 GMT Organization: None Lines: 32 Message-ID: <97otvfFdmmU1@mid.individual.net> References: <97jikdFr6pU3@mid.individual.net> X-Trace: individual.net o0rtp1ARbDR2VXn7OuoRCwvjRGi4xBWhL9o8GCigzzrZAyzQcK X-Orig-Path: not-for-mail Cancel-Lock: sha1:RspEUMYNHrE4D06iQo9RH8dbcLA= X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5991 In article , Gene Wirchenko wrote: > On 6 Jul 2011 16:59:57 GMT, blmblm@myrealbox.com > wrote: > > [snip] > > >Gene seems to be saying elsethread that in his real code he might > >be initializing from something that isn't in order. But assuming he > > Yup. > > >could put it in order before initializing the set, then yes, it seems > > Why bother? SortedSet does the work for me. If you care enough about performance to have put some effort into benchmarking various approaches, I'd have thought you'd be interested in one that seems to be significantly faster and almost as simple to set up and use. (Probably -- I guess it depends on how, in your real code, you'll be initializing the set.) I'm not unsympathetic, though, to a desire to move on once an acceptable solution has been found. "Just sayin'", maybe. > >like a LinkedHashSet would do what he wants. > > [snip] -- B. L. Massingill ObDisclaimer: I don't speak for my employers; they return the favor.