I have an app that pulls content from a webservice and populates a table, and it seems a little slow (iOS).
The table has about 15 rows for this section, with an image and 3 labels per row. I add an eventlistener on each row to open a details page, but I'm wondering if performance would be better if I added just one to the table itself instead.
Are you calling
appendRow() 15 times, or are you calling
setData() once? I definitely recommend the latter.
No doubt about it. Having one singe listener instead of fifteen can't hurt.
Also, don't forget to specify the
className property to your rows so iOS knows all your rows have the same layout. Thus improving overall performance.
Think you can help? Login to answer this question!