You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In llvm#137649 symlink resolution was added when loading dylibs. This
introduced a performance regression when linking with a large
number of inputs with LC_LOAD_DYLIB commands due to the syscall
overhead of realpath.
Refactor the change to be closer to the original:
- first check if the given path is in the cache
- if not, resolve it and check again
- update cache entries of both paths to point to the same dylib
This mitigates the regression as we do not incur the realpath cost
for every loadDylib call, only once per unique path.
0 commit comments