Skip to content

Table generation is slow, even for space aligned #54

@makew0rld

Description

@makew0rld

Hello, thanks for creating this library.

I'm generating a table with around 10,900 lines, and I find that pytablewriter takes ~90 seconds to generate it, ~70 when using 4 cores. By contrast, texttable takes ~7 seconds. This is all on a Raspberry Pi 4.

I am using a SpaceAlignedTableWriter with 8 columns, and simple alignment styling for each column, nothing more.

For texttable, I set max_width=0, set all columns to the text type, and use no borders (set_deco(0)).

I understand issues like this can be annoying to receive, so sorry about that. I thought I'd let you know in case this large time difference is due to some bug.

It's also possible this has to do with parsing and formatting of values or something? I noticed strings like 1,2,3 were being changed to 123 in the output. Let me know if I should file a separate issue for that.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions