Performance tuning, GC logs

Hi, What's the recommended way to improve my program's performance, in particular wrt garbage collection? I see jitviewer and vmprof, but I'm not sure if either is still maintained. I've noticed speed improvements after playing with the gc nursery size, but that was trial-and-error. Thanks. Albert-Jan

On Sat, Aug 27, 2022 at 12:42 AM AJ R <sjeik.appie@gmail.com> wrote:
Hi,
What's the recommended way to improve my program's performance, in particular wrt garbage collection? I see jitviewer and vmprof, but I'm not sure if either is still maintained. I've noticed speed improvements after playing with the gc nursery size, but that was trial-and-error.
Thanks.
Albert-Jan
You may be interested in this blog post [0] around improving gc latency, with some information about how to benchmark that particular problem. There is also the gc.get_stats() function might help you figure out what is going on. For more help we would need to know what exactly you mean by "speed improvements" and where you see bottlenecks in your program. Matti [0] https://www.pypy.org/posts/2019/01/pypy-for-low-latency-systems-613165393301... [1] https://doc.pypy.org/en/latest/gc_info.html
participants (2)
-
AJ R
-
matti picus