Re: Sorting Arraylist Of Objects
Tom Dacon wrote:
You're right, for only a few hundred to a few thousand object, the
difference was only about 1 second.
While the method I proposed might be faster for very large lists, it
does sacrifice a little readablity. For smaller lists, sacrificing an
almost negligible amount of time for readability may be the way to go.
Anyway, I think we have beaten this horse into the ground!
Chris
Tom Dacon wrote:
Interesting result. My use of this technique has been with much smaller
lists, on the order of a few hundred at most. Perhaps a StringBuilder or two
lists, on the order of a few hundred at most. Perhaps a StringBuilder or two
difference was only about 1 second.
While the method I proposed might be faster for very large lists, it
does sacrifice a little readablity. For smaller lists, sacrificing an
almost negligible amount of time for readability may be the way to go.
Anyway, I think we have beaten this horse into the ground!
Chris
Comment