Results 1 to 3 of 3

Thread: Render-time difference between DataView and List (wrapped in PhoneGap)

  1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    65
    Answers
    7
    Vote Rating
    1
      0  

    Default Render-time difference between DataView and List (wrapped in PhoneGap)

    Hi,

    There's a big difference in rendering-time, it seems the DataView is almost 50% faster.

    My test-case:
    + NavigationView
    +-----SubView1
    +-----SubView2

    In test-case 1 both sub-views are DataViews, in case 2 both are Lists.
    Tapping an item in SubView1 pushes the new View with a card-slide animation.

    I compared the app wrapped in PhoneGap on a Samsung Galaxy S3 and S2.

    The S3 with the Lists is way slower to switch views than the S2 with the DataViews.
    List-components apparently make your app feel much heavier, this was a dealbreaker with a client and I had a hard time finding out that Lists are slower than DataViews.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    List does quite a bit more than DataView to support infinite dataset. List will render slower but during runtime with as many records in the store it will handle it a lot better. If you try to use DataView with a thousand records in the store, the device will struggle to handle that many DOM nodes so the List can handle this. If you don't need the features List brings to the table, then just use a DataView and style it the way you need it to look.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    65
    Answers
    7
    Vote Rating
    1
      0  

    Default

    Yes I understand that, though I hope that render-time will be a bit more improved.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •