Page 2 of 2

Re: pb-event-fast

Posted: Wed Apr 24, 2019 7:56 am
by gurj
@Little John:
thanks!
haha, :(

when debugger is off,
and change:
Debug b
Debug ElapsedMilliseconds()-q
to:
q=ElapsedMilliseconds()-q
MessageRequester("",""+b+~"\n"+q)

use virtual tables out:
b;my pc =-5
ElapsedMilliseconds()-q;my pc =342

use Select out:
b;my pc =-155
ElapsedMilliseconds()-q;my pc =174

@GedB:
thanks! :mrgreen:
You are like a teacher to guide students to progress, thank you again for your link !

Re: pb-event-fast

Posted: Wed Apr 24, 2019 6:45 pm
by gurj
I have just experimented a few times and found that:
Sometimes the virtual table is fast, sometimes the Select is fast, and the data changes relatively large, unstable.

Updated.

Change
eg=Random(20,1)
mi=Random(10,1)
to:
eg+1;=Random(20,1)
If eg>20
eg=1:EndIf

mi+1;=Random(10,1)
If mi>10
mi=1:EndIf

It's stable now, it's virtual table fast.:
virtual tables out:
b=2 time=144

Select out:
b=2 time=174

Re: pb-event-fast

Posted: Wed Feb 19, 2025 2:38 pm
by Fred
Seems to work as expected in current release, can anybody else confirm ?

Re: pb-event-fast

Posted: Wed Feb 19, 2025 10:08 pm
by mk-soft
[22:03:26] [COMPILER] Line 51: EnableASM and DisableASM are not supported with C backend.
macOS :mrgreen:

With Windows (ASM) works

Everything works with my virtual table for the event procedures (My Event Designer)

Re: pb-event-fast

Posted: Thu Feb 20, 2025 11:51 am
by SMaag
This trick with Protoype and Invoke from mk-soft is new for me! Tank's.
To make a direct call over a Structure is a thing what you have to see.
I never had the idea to do it like that

Code: Select all

Prototype MyProtoInvoke()

Structure udtCallEvent
  Invoke.MyProtoInvoke[0]
EndStructure

*CallEventMenu\Invoke[MenuID]()