1,487
社区成员
发帖
与我相关
我的任务
分享
大家有遇到标题的问题么?64位系统引用copymemory明显很慢很慢
举个例子:同样拷贝arr&(1 to 1000)至arrb&()中,100000次。CopyMemory arrb(1), arr(1), 4000
#If Win64 Then
Const MemoryUnit As LongLong = 8
Declare PtrSafe Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (pDest As Any, pSource As Any, ByVal byteLen As LongPtr)
#Else
Const MemoryUnit As Long = 4
Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (pDest As Any, pSource As Any, ByVal byteLen As Long)
#End If