CompuServe Thread

loading DLLs?

1 messages in this thread
#50507From: Lee Hart [Microsoft]Aug 3, 1993 8:16 AM
>>>Someone here at work said that you take a performance hit dynamically loading DLLs (via LoadLibrary) compared to preloading DLLs with the executable. Under Win32s, is this performance hit significant? And, where does it occur — just at load time or throughout all interactions with the DLL? Once you have your DLL loaded, and have called GetProcAddress for any and all entrypoints that you are interested in, calling the function via the pointer you have vs. the link established at DLL init time for implicitly linked DLLs is nominal. However, the time it takes to LoadLibrary, and the time it takes to call GetProcAddress is time that is added to your execution time (and removed from your load time.) Lee