FixedColumns performance

FixedColumns performance

hathawahathawa Posts: 2Questions: 0Answers: 0
edited July 2011 in General
I'm displaying a reasonably large datatable (1117 rows by 27 columns) in Firefox and it is taking about 13 seconds to render on a i5 machine. I really would like to fix the first column using FixedColumns; however, do so increases the rendering time by an order of magnitude to 125 seconds. In addition, FixedColumns (2.0.1) does not seem to respect the container width resulting in a horizontal scroll in the browser window (in addition to the normal datatables scroll bar). Any ideas? Thanks in advance.

Replies

  • allanallan Posts: 63,280Questions: 1Answers: 10,425 Site admin
    edited July 2011
    You could set sHeightMatch ( http://datatables.net/docs/FixedColumns/2.0.0/FixedColumns.defaults.html#sHeightMatch_details ) to "none" and that will about as fast as it can go. Make sure to ensure that all rows are of equal height using CSS though!

    Basically it is so slow, because the height of every since row must be calculated - that takes time - DOM access is always slow, particularly in Firefox.

    Allan
This discussion has been closed.