I've implemented some performance improvements to remapColumns function, but I couldn't do properly exhaustive testing, and I'm also not very deeply familiar with jqGrid. So what I'm saying is, these changes might negatively affect something I didn't think of, so if anyone has the inclination to do some further testing I'd appreciate it. Or even just take a look at the code and double check I'm not doing something stupid.
In any case, I've forked jqGrid on github and here are the changes to grid.base.js. They are fairly straitforward but here's a quick outline.
The actual improvements in speed ended up being only about 10% (my data has 345 rows and 13 columns). However, the number of calls made was reduced almost five times. (I used firebug's console.profile to get these numbers)
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top