In article <>,
Gene Wirchenko <> wrote:
> On 6 Jul 2011 16:59:57 GMT,
> <> 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.