rdbo / libmem

Advanced Game Hacking Library for C, Modern C++, Rust and Python (Windows/Linux/FreeBSD) (Process/Memory Hacking) (Hooking/Detouring) (Cross Platform) (x86/x64/ARM/ARM64) (DLL/SO Injection) (Internal/External) (Assembler/Disassembler)
GNU Affero General Public License v3.0
764 stars 92 forks source link

Implement faster pattern scanning algorithm #132

Closed rdbo closed 1 year ago

rdbo commented 1 year ago

TODO: Reduce amount of LM_ReadMemoryEx calls (read whole buffers at once is less expensive that byte by byte).

rdbo commented 1 year ago

Always assume the scan region is readable; it is a waste of resources to change the page protection for every scan.

rdbo commented 1 year ago

Done: fd8412218f840ee5088cc57c59443142bb65c429

rdbo commented 1 year ago

Better version: 8c8eaba45bb4aa7a35d242c6d0e9efab9a3c427a