Draft: Cache dlsym resolutions
This is an prototype approach at mitigating the poor dlsym
performance exhibited by Darwin as seen in #23415 (closed).
In my experiments this brings the overall link time from 11 seconds down to ~3 seconds. However, no doubt more thought is needed here.
To do
-
Fix key leakage -
Fix HashTable
leakage -
Figure out defensible invalidation strategy -
Only cache on Darwin -
Document it
Edited by Ben Gamari