-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Math-widget ts.computeColumnIndex slowdown #1048
Comments
Hi @LvLynx! Because the math widget works with information tbodies, and those tbodies allow I think you're right about the I wrote the math widget to utilize the I'm not sure when I'll have time to get to it, so for now, I'll detach the table from the DOM, index the table cells, then add it back. That may speed up the process a little (don't count on it in IE). |
Hi @LvLynx! Sorry for taking so long... please try the updated tablesorter core & math widget in the master branch. A Let me know how this works out for you! |
I made even more optimizations. So, please try out the math widget in the master branch. I plan on pushing out a new release tomorrow, so hopefully I'll get some feedback from you before then. Thanks! |
@Mottie Awesome work! I tested same data set and it loads much smoother without any browser freezes. Total execution time is twice as fast and previous bottleneck computeColumnIndex is nowhere to be seen in call graph. Big thanks :) |
Hi!
I am building a report with quite large data set: 3500 rows with 18 columns total.
I have two tbody class="tablesorter-infoOnly" from which 15 cols have col-sum function 1 of them is on top of table, second in bottom. In middle there is third tbody with all data.
The problem is: firefox freezes for me at least once or twice while working with this data.
I did some profiling and found 1 huge bottleneck:
If I read this correctly seems that ts.computeColumnIndex takes 36% of all execution time, which seems huge. Any ideas how to optimize this?
On first look at least in math widget return value is not used anywhere. So maybe matrixrow.length calculation can be divided in separate function? Also lookup = {}; object is not used anywhere.
Maybe it is possible that this function also gets called more than once?
Thank you!
Update: github didnt display tbody tag in within < >.
The text was updated successfully, but these errors were encountered: