KeyTable extension performance
KeyTable extension performance
![StuartF](https://secure.gravatar.com/avatar/3dfcf8de603220d8fb3c5653ab65a983/?default=https%3A%2F%2Fvanillicon.com%2F3dfcf8de603220d8fb3c5653ab65a983_200.png&rating=g&size=120)
I am using the KeyTable extension, and during some testing I created a table 20 columns wide by about 300 rows tall. With a table of that size, I see a 2-4 second lag between a navigational key press and the response in the browser. I'm guessing the table gets redrawn over and over? Any idea where I should look for optimization opportunities?
The table is 100% dynamic, if that makes a difference. Our only html is a table tag. We get column schema data from our web server, instantiate datatables with those columns, then add row data. We also have the AutoFill and FixedColumn extensions applied.
Answers
So the table redraw is the bottleneck. I commented out this line:
and the response is snappy. I don't notice any problems with scrolling or the updates I've enabled. Any idea what side effects I might be missing with this edit?
Hmmm - that's fairly horrible of KeyTable doing that. The only downside that I can think of to commenting it out is that it might not display correctly if the key press would take you to another page.
To be honest, KeyTable needs a complete rewrite. When i finish my current batch of work, that is going to be the priority...
Allan