Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2671] poor performance when table view row has image background

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2012-08-24T10:51:05.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
Reporterjason H
AssigneeNeeraj Gupta
Created2011-04-15T03:26:34.000+0000
Updated2017-03-09T23:02:22.000+0000

Description

I have tried sdk 1.4.3, 1.5.2 and 1.6 on iPhone, they all showed poor performance when table view row has image background. My table has about 100 rows ( actually, it is kind of slow when it has only 20 rows too), each row has a nice image as its background. I set rowclass, prepopulated the rows into an array then set it to tableData, it is fast in simulator (of course it is fast with 12 CPUs), but it took 5 seconds even in iPhone 4. I ended up with a trick, I only set 8 rows to tableData first (user can only see first 8 anyway), then append the rest of rows to tableview with a setTimeout function. It kind of works in iPhone 4, but not good in older version of device.

I would really appreciate you look into this performance issue, since table view is most widely used UI widget.

Comments

  1. Junaid Younus 2012-08-24

    No sample code provided, unable to reproduce, ticket marked as invalid.
  2. Lee Morris 2017-03-09

    Closing ticket as invalid.

JSON Source