Search optimisation Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
pneumatic
Posts: 338
Joined: 05 Dec 2016, 01:51

Re: Search optimisation

08 May 2021, 07:54

teadrinker wrote:
08 May 2021, 05:45
You need to increase pHaystack and decrease hstkSize. I'd do it before calling the function.
Thanks.

I'm a bit surprised though; I didn't know we could mess with pointer addresses like that -- could there be some side effects on 32/64-bit due to A_PtrSize?
teadrinker
Posts: 4330
Joined: 29 Mar 2015, 09:41
Contact:

Re: Search optimisation

08 May 2021, 08:59

Nope, A_PtrSize has nothing to do with this.
User avatar
SKAN
Posts: 1551
Joined: 29 Sep 2013, 16:58

Re: Search optimisation

11 May 2021, 02:03

pneumatic wrote:
08 May 2021, 07:54
I didn't know we could mess with pointer addresses like that -- could there be some side effects on 32/64-bit due to A_PtrSize?
A_PtrSize is important when you are executing machine code.
For example, I would allocate memory once and place many mcode functions in it.
But each function should start at an offset that is divisible by A_PtrSize
Math isn't very hard because

starting memory pointer will always be divisible by A_PtrSize.

Code: Select all

Somevar := "hello"
MsgBox % Mod(&SomeVar, A_PtrSize)

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: inseption86, jaka1, metallizer, Rohwedder and 334 guests