View previous topic :: View next topic |
Author |
Message |
dl748 Advanced Cheater Reputation: 0
Joined: 05 Mar 2016 Posts: 75
|
Posted: Sat Aug 19, 2017 1:17 pm Post subject: FoundLists |
|
|
Having a performance problem, I do a lot of math on Addresses found with scans. Is there anyway to get the RAW address from a FoundList or (AOBScan)?
address = GetAddress(foundlist.Address[0])
is 25% slower than
address = 0x0000000000000000
or
address = numaddresslist[0]
Is there something like fl.RawAddress[0], because it seems like the IntToHex() Combined with getAddress seems to be extremely slow?
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25295 Location: The netherlands
|
Posted: Sat Aug 19, 2017 1:23 pm Post subject: |
|
|
address=tonumber(0x..foundlist.Address[0])
alternatively, maybe you wish to look into custom types instead
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
dl748 Advanced Cheater Reputation: 0
Joined: 05 Mar 2016 Posts: 75
|
Posted: Sat Aug 19, 2017 2:00 pm Post subject: |
|
|
I'll try that out. How would a custom type help? Addresses are always returned by Hex and not integer.
EDIT: Thanks, that gave me a 15% increase in speed. I'm guessing the symbol lookup is rather slow.
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25295 Location: The netherlands
|
Posted: Sat Aug 19, 2017 3:13 pm Post subject: |
|
|
symbol lookup also keep in mind calculations, symbols, and lua variables
a custom type gets thevraw data. there you can decide if it is a valid address by returning a proper value or not (e.g 0 if not)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
|