[macports-legacy-support] branch master updated: clock_gettime: cache timebase - On versions of osx before 10.12, mach_timebase_info is a direct syscall (see dyld-239.3/glue.c#L434) which is order of magnitudes slower than the subsequent mach_absolute_time() call. Hence it's better to just cache it after the first call. - Since 10.12+, Apple also realized this and began caching mach_timebase_info calls at the libc layer (https://opensource.apple.com/source/xnu/xnu-3789.41.3/libsyscall/wrappers/mach_timebase_info.c.auto.html)

krackers krackers at users.noreply.github.com
Mon Apr 24 21:29:34 UTC 2023


An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-changes/attachments/20230424/3a513cdc/attachment.htm>


More information about the macports-changes mailing list