Post #4018575
2026-07-21 20:50 UTC
another thing that's fun about working in Python (instead of Go) is that if I want to add a debug print statement deep inside some dependency to see what's going on I can just run `vim ./.venv/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py` or whatever and edit it
Replies (1)
-
@b0rk@social.jvns.ca 2026-07-22 11:46
something that's been surprising about Django is that I always heard that if my Python app is slow, it's probably a bad database query. But so far my experience has been that a lot of the time something in my Python code (either in my own code or in Django or a combination) is using too much CPU, and it's useful to do a CPU profile with py-spy to figure out what's going on and fix it https://github.com/benfred/py-spy (3/?)