Search found 647 matches

by arcticir
08 Feb 2020, 21:53
Forum: AutoHotkey_H
Topic: ObjDump does not release memory
Replies: 4
Views: 2082

Re: ObjDump does not release memory

ObjLoad needs fixed.

Code: Select all

LOOP 100000
{
t:=	{"from": 2625636,"func": "ahkgetvar","ps": ["tt"],"reply": 10354448}
size:=ObjDump(t,bin)
r:=ObjLoad(&bin,size)
}
MsgBox
by arcticir
07 Feb 2020, 17:44
Forum: AutoHotkey_H
Topic: ObjDump does not release memory
Replies: 4
Views: 2082

ObjDump does not release memory

loop-10: 3M
loop 10000 12M
It doesn't seem to release the memory completely

Code: Select all

LOOP 10000
{
t:=	{"from": 2625636,"func": "ahkgetvar","ps": ["tt"],"reply": 10354448}
size:=ObjDump(t,bin)

}
MsgBox
by arcticir
06 Feb 2020, 12:06
Forum: AutoHotkey_H
Topic: ahkdll reuse
Replies: 1
Views: 1602

ahkdll reuse

Ahkdll does not seem to clear the data thoroughly when reused, making it keep increasing memory usage.

Code: Select all

f:=ahkdll()
loop
{
	While f.ready()
		sleep 100
	f.new("#NoTrayIcon`ns.= 22222222222222")
}
by arcticir
04 Feb 2020, 16:37
Forum: AutoHotkey_H
Topic: Ahkdll load time
Replies: 27
Views: 5242

Re: Ahkdll load time

I remember this method does not apply to TLS
Is it possible to use OnMessage-WM_COPYDATA for "ahkFunction-ahkPostFunction"?
ok, I give up and continue to use the old scheme.
by arcticir
03 Feb 2020, 22:08
Forum: AutoHotkey_H
Topic: Ahkdll load time
Replies: 27
Views: 5242

Re: Ahkdll load time

No. I did not read the AHK source code, but I do know that "ahkFunction-ahkPostFunction" uses window messages to pass binary data. For example, the process of ahkPostFunction should be: func,param1-param9 => bin => send bin => bin => func,param1-param9 The scheme I am using is: objdump((func,param*)...
by arcticir
03 Feb 2020, 00:47
Forum: AutoHotkey_H
Topic: Ahkdll load time
Replies: 27
Views: 5242

Re: Ahkdll load time

A_LineFile Seems to be malfunctioning
win10-64 h2-64

Code: Select all

flux()

Code: Select all

; to lib dir
flux(this:="",tag:="",list*){
    static _f:=MsgBox(A_LineFile)
}
by arcticir
02 Feb 2020, 22:11
Forum: AutoHotkey_H
Topic: Ahkdll load time
Replies: 27
Views: 5242

Re: Ahkdll load time

I'm not sure which "object" you are talking about ThreadObj.func("test","1") or ThreadObj.test(1) ;base.__call But obviously both have big flaws. So I use the example of passing data between processes in the "OnMessage ()" document, passing "ObjDump-objLoad" binary data between processes. It can saf...
by arcticir
02 Feb 2020, 14:15
Forum: AutoHotkey_H
Topic: Ahkdll load time
Replies: 27
Views: 5242

Re: Ahkdll load time

ObjDump-objLoad has excellent performance. Do you think it is necessary to use them to improve "ahkFunction-ahkPostFunction" function? It can avoid their various disadvantages and limitations.
by arcticir
02 Feb 2020, 07:52
Forum: AutoHotkey_H
Topic: Ahkdll load time
Replies: 27
Views: 5242

Re: Ahkdll load time

thanks.
by arcticir
02 Feb 2020, 06:23
Forum: AutoHotkey_H
Topic: Ahkdll load time
Replies: 27
Views: 5242

Re: Ahkdll load time

no. I need obj to json. To be precise, I need to know the exact type of the object wrapped by CriticalObject.

Code: Select all

for i,n in t:=CriticalObject(map(CriticalObject({"a":"b"}),CriticalObject([1])))
{
;CriticalObject -> array? object? map?
}
by arcticir
01 Feb 2020, 18:53
Forum: AutoHotkey_H
Topic: Ahkdll load time
Replies: 27
Views: 5242

Re: Ahkdll load time

But I still don't know how to for CriticalObject. Can you provide an example?
by arcticir
31 Jan 2020, 22:00
Forum: AutoHotkey_H
Topic: Ahkdll load time
Replies: 27
Views: 5242

Re: Ahkdll load time

try it:

t:=CriticalObject(map(CriticalObject({"a":"b"}),CriticalObject([1])))
MsgBox size:=ObjDump(t,var)
by arcticir
31 Jan 2020, 17:27
Forum: AutoHotkey_H
Topic: Ahkdll load time
Replies: 27
Views: 5242

Re: Ahkdll load time

Thank you.

By the way, MAP also has this problem.
Is there no need to change the type name of CriticalObject?
by arcticir
31 Jan 2020, 09:59
Forum: AutoHotkey_H
Topic: Ahkdll load time
Replies: 27
Views: 5242

Re: Ahkdll load time

Regarding "IsBOM", if you ignore the second parameter, can you directly return the value it matches?

MsgBox IsBOM(&st,"utf-8")?"utf-8":IsBOM(&st,"utf-16")?"utf-16":....
by arcticir
31 Jan 2020, 03:45
Forum: AutoHotkey_H
Topic: Ahkdll load time
Replies: 27
Views: 5242

Re: Ahkdll load time

Also, array () does not seem to work in a multithreaded environment. t:=CriticalObject([]) f:=ahkdll() loop 10 f.new("#NoTrayIcon`nt:=CriticalObject(" (&t) ")`nt.push(ahktime(" ahktime() "))") ,sleep(100) M ov(t) Error: CONTINUABLE EXCEPTION_ACCESS_VIOLATION Mouse and Keyboard hooks have been disabl...
by arcticir
31 Jan 2020, 03:37
Forum: AutoHotkey_H
Topic: Ahkdll load time
Replies: 27
Views: 5242

Re: Ahkdll load time

Yes, sorry, TLS has not changed.

=====

type () can't seem to judge the object wrapped by CriticalObject (), can we change its name? E.g. type(CriticalObject([])) = "Critical_array"
by arcticir
31 Jan 2020, 03:06
Forum: AutoHotkey_H
Topic: Ahkdll load time
Replies: 27
Views: 5242

Re: Ahkdll load time

I did not find the exact version. Aside from DLLs with uncertain parameters, look only at TLS. Its loading process is simpler than DLL, so its loading time has always been less than DLL, which I am pretty sure. But now TLS has twice the load time of DLL, isn't this unreasonable? ============== It se...
by arcticir
30 Jan 2020, 06:31
Forum: AutoHotkey_H
Topic: Ahkdll load time
Replies: 27
Views: 5242

Ahkdll load time

In the latest version of H2, I tested the load time of ahkdll-an average time of 30MS I remember that in an update, the load time was reduced to about 10MS. Where did it change? ======= NewThread also seems to have changed. At its fastest, it was about 6MS, now it is 60MS. MsgBox NewThread("MsgBox a...
by arcticir
28 Jan 2020, 13:09
Forum: AutoHotkey_H
Topic: ObjRawGet/ObjRawSet abnormal
Replies: 5
Views: 2310

Re: ObjRawGet/ObjRawSet abnormal

it's a pity. Its performance is excellent.
loop 1000000

t:=ObjRawGet(p,x) 150ms
t:=o.has(x)?o[x]:"" 260ms/570ms
t:=o[x] 270ms
by arcticir
28 Jan 2020, 06:04
Forum: AutoHotkey_H
Topic: ObjRawGet/ObjRawSet abnormal
Replies: 5
Views: 2310

ObjRawGet/ObjRawSet abnormal

It seems that it cannot read and write the object as a key normally?

Code: Select all

	m:={}
	t:=[]
	ObjRawSet m,t,4
	b:=[]
	MsgBox ObjRawGet(m,b)	;> 4

Go to advanced search