Commit 5e1083c
authored
Speed up
`dlpath()` on MacOS iterated over all loaded image names, calling
`dlopen()` on them again and comparing returned handles to see if the
given handle matched. This wasted a lot of time running through the
`dlopen()` machinery, we can bypass much of it by passing `RTLD_NOLOAD`
in to `dlopen()`, as we are assured that all pathnames we are probing
are already loaded.dlpath() on MacOS (#35630)1 parent 5819223 commit 5e1083c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
535 | | - | |
| 535 | + | |
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
| |||
0 commit comments