Menu

FastObjectListView vs DataListView

2010-09-15
2012-10-30
  • Frederik Grunta

    Frederik Grunta - 2010-09-15

    Hi there,

    Simple question:

    I have 4 lists which I would like to add quite a lot of information to. Say
    100,000 rows or so. I never need to remove anything or edit anything from
    these lists. Data trickles in - I don't have all of the information
    immediately.

    As data comes in, is it faster to let the DataListView add the objects, or to
    use the FastObjectListView and call SetObjects()?

    Sorry, I would just time the execution myself, but I'm not sure how to for
    DataListView.

    Cheers,

    Frederik

     
  • Phillip Piper

    Phillip Piper - 2010-09-15

    If you want speed, you want a FastObjectListView.

    For a normal ObjectListView (which is what DataListView actually is), the
    speed of building a list is 1000-2000 rows per second, depending on the
    machine and the number of columns. Building 100,000 rows will take 30 seconds
    or more!

    But with a FastObjectListView, it will "build" in less than one second for
    millions of rows.

    So, FastObjectListView with SetObjects() is definitely the way to go.

    Regards,
    Phillip

     
  • Frederik Grunta

    Frederik Grunta - 2010-09-15

    Wow, quick response.

    Thanks Phillip!

     

Log in to post a comment.

MongoDB Logo MongoDB