How a 40-Line Fix Eliminated a 400x Performance Gap
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
A deep dive into an OpenJDK commit that replaced slow /proc file parsing with a single syscall for getting thread CPU time. The old implementation opened and parsed /proc/self/task/<tid>/stat files, involving multiple syscalls, VFS machinery, and string parsing. The fix uses clock_gettime() with a Linux-specific clockid bit
•11m read time• From questdb.com
Table of contents
The Deleted CodeThe Performance GapWhy Two Implementations?The Clockid Bit HackProfiling time!How Documented Is This?Pushing FurtherBrowsing for GemsSort: