Sorting Arraylist Of Objects

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chris Dunaway

    #16
    Re: Sorting Arraylist Of Objects

    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
    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

    Comment

    • Tom Dacon

      #17
      Re: Sorting Arraylist Of Objects

      indeed

      "Chris Dunaway" <dunawayc@gmail .comwrote in message
      news:1158604891 .046539.34210@i 3g2000cwc.googl egroups.com...
      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
      >
      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
      >

      Comment

      Working...