Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2473] Android: UI - remote imageView in tableView load 5X slower than earlier Titanium versions

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-08-23T14:18:06.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
Reporterlansea90
AssigneeNeeraj Gupta
Created2011-04-15T03:20:43.000+0000
Updated2017-03-21T22:32:19.000+0000

Description

Problem

Load 6 rows and display 6 same images took 6-8 seconds - it is too slow. Same test in Titanium 1.4.2 took only 1-2 seconds. It is faster by 5X compared with 1.5.0!

Test case

var data = [];

for (var i = 0; i < 20; i++) {
  var row = Ti.UI.createTableViewRow({
    height: '70',
    hasChild: true
  });

  var img = Ti.UI.createImageView({
    image: 'http://lig.cn/prd_imgs/f/b/fb2df843d08ac0474c799daf0cbc2409_60x60.jpg',
    height: 60,
    width: 60,
    left: 5,
    top: 5
  });
  row.add(img);
  data.push(row);
}

var tableview = Ti.UI.createTableView({
  data:data
});

Ti.UI.currentWindow.add(tableview);

Comments

  1. Stephen Tramer 2011-04-15

    Assigning to Don for triage.

  2. Junaid Younus 2012-08-23

    Tested on a Samsung Galaxy S2 using TiSDK 2.2.0v20120821095711, unable to reproduce the issue. Images seem to load-in just fine, only takes 1-2 seconds. Ticket marked as resolved.
  3. Lee Morris 2017-03-21

    Closing ticket as the issue cannot be reproduced and due to the above comments.

JSON Source