Why is "MemoryLoadLibrary" so slow?

Ask for help, how to use AHK_H, etc.
Posts: 544
Joined: 17 Nov 2013, 11:32

Why is "MemoryLoadLibrary" so slow?

14 Sep 2018, 07:24

Can it be as fast as "LoadLibrary"?

Code: Select all

dll:=fileread("AutoHotkey.dll","raw") ;Not in the calculation range

LoadLibrary("AutoHotkey.dll")   ;1 millisecond
MemoryLoadLibrary(&dll)         ;6 millisecond
Posts: 1761
Joined: 29 Sep 2013, 18:35

Re: Why is "MemoryLoadLibrary" so slow?

14 Sep 2018, 16:22

It is most likely because of the hook, AFAIK this cannot be improved.

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot] and 3 guests