Summary

Avoid getrusage system calls in GC

Metadata

Description

To calculate GC time statistics, `C_cpu_milliseconds` is currently used, which results in an getrusage(2) system call on many platforms. This should be avoided, preferrably by using a faster alternative like clock(3).

Changes and comments

[2022-10-21 13:27:47 UTC] felix changed difficulty from easy to medium

[2023-11-06 22:13:54 UTC] felix changed milestone from 5.4 to 6.0.0