You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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?
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.
The text was updated successfully, but these errors were encountered: