render-with-notepad
render-with-notepad copied to clipboard
FindPattern performance
Currently it uses memcmp
for each address, however, it's more effective to find the first byte of a pattern via memchr
(which is highly optimized) first and then compare the found address against the whole pattern.
Thanks for the tip! I don't think I've ever come across memchr before, it looks really handy.