-
Notifications
You must be signed in to change notification settings - Fork 361
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
performance increase for appendRow #285
base: master
Are you sure you want to change the base?
Conversation
refactored functions out from string and array protoypes included appendRow changes from rstaib#285 (50% faster in Chrome, 10% Edge, 15% FF)
remove prototypes from string and array merge in appendRow rstaib#285 improves Chrome 50%, FF 15%, Edge 10%
This is great in Chrome 50% faster, Firefox is about 15% faster, Edge is 10% faster, IE 11 just sucks |
Hello, good to see that somebody is working on it and my fix could be of help. I didn't have the time to make more improvements since javascript is also not the language I normally use. I did had some thoughts on doing rendering more in memory first then adding it to the dom as the final version only to find out that the code goes outside the assigned div to render the header. I also wanted to apply more funtional programming, this is why I though of the appendrows approach. |
the main remaining problem is that IE11/Edge appendChild performance simply sucks compared to FF/Chrome/Safari MS have confirmed there is an issue with appendChild being slow, vote for the bug here |
Downloaded the bootgrid from the dist folder of the @jorkzijlstra repo. But whe I use it it gives me this error:
Any ideas? |
@Rombusevil, I redownloaded but I still can't reproduce it. Since this.rows is undefined, which is constructed on initialization, are you initializing the bootgrid correctly?
Here is a snippets I use, although it will contains some extra code that you maybe have to filter to get it working for you.
Let me know if this helps or not. |
@Rombusevil, where you able to solve / fix it? |
Thanks @jorkzijlstra and sorry for not responding earlier. I ran out of time with that project so I decided to make the grid hook up with a webservice instead of keep debbuging the local performance. |
I was adding 100.000 rows and the time that it took went from 37 seconds to 100 ms with this change.