nem
13 years agoOccasional Contributor
Extremely slow table cells interaction
Hello.
I have problem when trying to interact with an html table cells (~60 rows and 25 columns).
The way table looks in “object browser” is the following:
Table(0)
Cell(0,0)
Cell(0,1)
Cell(0,…)
Cell(1,0)
Cell(1,1)
Cell(1,2)
Cell(…,…)
I need to select a row based on search criteria (an array of column names and cell values).So, I implemented some kind of a search mechanism, searching for necessary table row parsing columns one by one. I get all cell objects from a column via FindAllChildren method into array of objects. Then access cell objects one by one searching for necessary text in a cell (I see that this part of code is too slow ((( ). The problem is that it takes extremely much time.
So, I wonder if somebody has ideas about the reason or how the speed can be improved.
I have problem when trying to interact with an html table cells (~60 rows and 25 columns).
The way table looks in “object browser” is the following:
Table(0)
Cell(0,0)
Cell(0,1)
Cell(0,…)
Cell(1,0)
Cell(1,1)
Cell(1,2)
Cell(…,…)
I need to select a row based on search criteria (an array of column names and cell values).So, I implemented some kind of a search mechanism, searching for necessary table row parsing columns one by one. I get all cell objects from a column via FindAllChildren method into array of objects. Then access cell objects one by one searching for necessary text in a cell (I see that this part of code is too slow ((( ). The problem is that it takes extremely much time.
So, I wonder if somebody has ideas about the reason or how the speed can be improved.