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

Performance issues on Ubuntu #715

Open
mondonomo opened this issue Mar 17, 2023 · 3 comments
Open

Performance issues on Ubuntu #715

mondonomo opened this issue Mar 17, 2023 · 3 comments

Comments

@mondonomo
Copy link

generate_from_frequencies function is 80-90 times slower on Ubuntu 20 EC instance than on Windows Notebook (with a similar CPU) or Mac M1. Profiling shows that the most time is spent on getting the size of the font object.

491 14.976 0.031 14.976 0.031 {method 'getsize' of 'Font' objects}

I am using Python 3.11 and the master release for all OSs, but the differences are the same with the other versions of Python.

@amueller
Copy link
Owner

Hey.
Sorry for the slow reply. Could you provide code to reproduce the issue? Thanks!

@mondonomo
Copy link
Author

Hi Andreas,
Thank you for your answer and the great project!
I've solved my problem by upgrading to the Pillow master release (I've been using 9.4.0), the drawing with it is 20x faster, so I suppose it is a Pillow issue, not yours.

@amueller
Copy link
Owner

That's interesting, if you feel it's worth trying to speed it up for older versions, we can give it a try. With the new version, is the bottleneck still at the same place?

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

No branches or pull requests

2 participants