lvjr / tabularray

Typeset tabulars and arrays with LaTeX3
https://ctan.org/pkg/tabularray
247 stars 22 forks source link

Add cache library #373

Open lvjr opened 1 year ago

lvjr commented 1 year ago

Sometimes TikZ is rather slow, so it provides external library to speed it up. Maybe tabularray could add an cache library some day to make it run faster in the second run.

In fact, tabularray need to measure every cell at least once to get correct dimensions before building a table. When there are X columns, it has to measure each cell for the second time; and when there are multicolumn cells, it has to measure each cell for the third time. If it can save the column widths to the .aux file or a .tblr file, then it might only need to measure each cell once in subsequent runs.

typohandwerker commented 1 year ago

That would be great. I have a report with 16 tabularrays with up to 20 columns each (and also multicolumn). The calculation takes up to 3 hours.

lvjr commented 1 year ago

Or make tabularray behave like longtable: it needs multiple compilations to get the final result, but only measures once in each compilation.

teclab-at commented 1 year ago

I'd like to add that longtblr is from my perspective currently the best pixel-perfect latex table. Unfort. I am having many tables up to 400 rows so my document takes measured >160 Minutes to generate, instead of a minute compared to using (old) xltable/longtable etc. If it's \halign (https://github.com/lvjr/tabularray/issues/134#issuecomment-949514723) or cache or whatever, I guess an improvement would be very much appreciated by all of us. thx!