This code takes two seconds to process.
print("before loop scholarships:"..system.getTimer())
for i = 1, scholarshipTableSize do
-- Insert the row into the tableView
tableView:insertRow
{
isCategory = false,
rowHeight = 75,
rowColor =
{
default = { 255, 232, 4 },
over = { 0, 158, 255 },
},
lineColor = { 0, 0, 0 },
}
end
scholarshipTableSize is somewhere around 1200. How can I optimize this insertion so that it performs faster?
After I updated to the latest corona build, the time was much better. around 2 ms.
Now I am using build 2013.1137
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With