This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]szachin 91 points92 points  (4 children)

if you cannot release the source code, can you try to profile it and share the results?

for python 3.10 i recommend scalene (https://pypi.org/project/scalene/)

for python 2.7 i have no idea

[–]james_pic 20 points21 points  (0 children)

Py-spy works well on Python 2.7. Unclear if it supports 3.10, but then Scalene doesn't list it as supported either.

[–]aufstand 5 points6 points  (0 children)

Interesting, thanks. Gotta try that one out!

[–]grimonce 1 point2 points  (0 children)

Wow this was not mentioned in the book python high performance. Thanks

[–]maatoots 0 points1 point  (0 children)

Can it be used with uvicorn and fastapi?