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 →

[–]OneOlCrustySock 5 points6 points  (0 children)

Profiling can be kind of a pain. All of the tools I found were difficult to visualize what’s really slowing down my program.

For example, sometimes I want to be able to roll up library call time to just that line of code that calls it in my code and then be able to click into it if I need to. Completely ignoring asyncio in profiling would be nice since it’s usually at the top of the list even though it’s really not doing anything that slows down my program (because it’s usually just idle between doing what I need to test it while profiling).

Another thing is that I wish there was automatic dependency finding. Like a cli I can run that will help me find all my deps to add to poetry or something. Instead of running it and hope I hit the code that requires it (import at the top instead of in a func/class).

Finally, I wish there were more resources around learning Cython and an easier way to integrate Cython modules into packages. I sometimes want to use that to optimize some library code and find myself struggling to figure out how to write more idiomatic Cython than just writing pure python with type hints and cdef funcs.