-
Enhancement
-
Resolution: Won't Fix
-
P3
-
9
dlsym(RTLD_DEFAULT, sym) performs a linear search of all loaded libraries to find the named symbol. If we know which library we expect to find the symbol in then we should dlopen that library and pass its handle to dlsym.
We should also check all search paths to ensure they are needed, and use the most effective loading mechanisms (eg lazy loading). See comments for more details.
Although the absolute costs are not high using the specific library can be twice as fast in some circumstances - seeJDK-8151322.
We should also check all search paths to ensure they are needed, and use the most effective loading mechanisms (eg lazy loading). See comments for more details.
Although the absolute costs are not high using the specific library can be twice as fast in some circumstances - see