I just released PrettyTables.jl v0.12. As I mentioned in my last post, it has some deprecations (nothing is breaking) because two things:
backendis now selected using
Valinstead of a symbol. Hence,
backend = :htmlmust be
backend = Val(:html). The old version will work, but with a very bad performance.
- The header is now selected by
headerkeyword and it is a tuple of vectors instead of a matrix.
I apologize for such changes, but it was necessary to drastically reduce the time to print the first table, mainly in HTML and LaTeX backends. Take a look at the new numbers:
Notice that for HTML and LaTeX it takes now 4x less to print the first table.
This will (hopefully) be the last release before 1.0. I planning to wait one or two weeks for bugs before tagging 1.0. If you find anything weird, please, fill an issue in Github!
I would also like to thanks @bkamins to pointing the directions I need to follow to reduce these times. Furthermore, I want to thanks the developers of two amazing tools: SnoopCompiler.jl and Cthulhu.jl. I wouldn’t be able to optimize the package without those two packages.