Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table generation is slow, even for space aligned #54

Open
makew0rld opened this issue Jan 13, 2022 · 1 comment
Open

Table generation is slow, even for space aligned #54

makew0rld opened this issue Jan 13, 2022 · 1 comment

Comments

@makew0rld
Copy link

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.

@thombashi
Copy link
Owner

@makeworld-the-better-one
Thank you for your feedback.

It's also possible this has to do with parsing and formatting of values or something?

I assume this would be the cause.

If you could upload your scripts that reproduce the issue, I might be optimized the processing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants