« * K @realpython.com

Real Python @realpython.com

2026-11-24 21:30 UTC

3. Add -a to sample every thread and --mode gil to count only samples where a thread holds the GIL. In the 3D viewer, a thread decoding an image one byte at a time took about 13.7% of all GIL time. While it held the lock, the renderer waited, and the animation stuttered.

A reply in a thread.

0 likes, 0 reposts, 1 replies

3 Next post4 More from @realpython.comBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup