400배 성능 격차를 없앤 40줄짜리 수정
------------------------------
- OpenJDK의 ThreadMXBean.getCurrentThreadUserTime()이 */proc 파일 파싱 대신 clock_gettime() 호출* 로 교체되며 최대 *400배 성능 향상* 을 달성
- 기존 구현은 /proc/self/task/<tid>/stat 파일을 열고 읽고 파싱하는 *복잡한 I/O 경로* 를 거쳤음
- 새 구현은 *Linux 커널의 clockid_t 비트 인코딩…
------------------------------
https://news.hada.io/topic?id=25816&utm_source=googlechat&utm_medium=bot&utm_campaign=1834
If you have a fediverse account, you can quote this note from your own instance. Search https://sns.lemondouble.com/notes/ahidu11lk2 on your instance and quote it. (Note that quoting is not supported in Mastodon.)