Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-5429

iOS: TableViewRows are not being reused even though className is set

    Details

      Description

      While profiling our app I noticed that scrolling through the stream continues to generate new views rather than reusing existing ones. These rows do in fact have classNames set, and when the table is cleared, all the views are indeed garbage collected, so I do not believe it is an issue of external references being kept. Also of interest, the # of transitory instances also continues to rise, suggesting that the rows are being continuously garbage collected and recreated (potentially as a result of continuous setData calls).

      Video of the issue: http://cl.ly/1M3L2T2y2k3k1q1y3g2Y
      Factory method used to generate these rows: https://gist.github.com/7bd7d37b056562eb9962

      Not that to page in new rows, they are added to the main tableViewSection, and then setData is called on the table with the entire array of sections again

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mstepanov Max Stepanov
                Reporter:
                adecena Anthony Decena
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-4602
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration