Not counting the nested ajax calls, I found this 'reworked' tabletogrid function that is a lot faster:
http://s339.codeinspot.com/q/1918992
It does however produces some disadvantages, for example column sorting doesn't seem to work anymore.
But it is surely faster if you only need to display a grid 🙂