HackerTrans
トップ新着トレンドコメント過去質問紹介求人

grodola

no profile record

投稿

From Python 3.3 to today: ending 15 years of subprocess polling

gmpy.dev
8 ポイント·投稿者 grodola·5 か月前·1 コメント

Detect memory leaks of C extensions with psutil and psleak

gmpy.dev
72 ポイント·投稿者 grodola·7 か月前·10 コメント

Wheels for free-threaded Python now available for psutil

gmpy.dev
72 ポイント·投稿者 grodola·9 か月前·20 コメント

コメント

grodola
·5 か月前·議論
For ~15 years, Python's subprocess.Popen.wait() implemented timeouts using busy-loop polling. This post explains how that was finally replaced with true event-driven waiting on POSIX systems: pidfd_open() + poll() on Linux and kqueue() on BSD / macOS. The result is zero polling and fewer context switches. The same improvement now landing both in psutil and CPython itself.
grodola
·7 か月前·議論
I have released new psutil 7.2.0, which includes 2 new APIs to inspect C heap memory allocations.

I have also released a new tool called psleak, which detects memory leaks in C extension modules.

https://gmpy.dev/blog/2025/psutil-heap-introspection-apis

https://github.com/giampaolo/psleak/