Closed PeakKS closed 1 year ago
Did you experience performance problems with the current code and did those benchmarks using some SourceHook testing plugin or unit test? Complicating the code as a pre-mature optimization doesn't seem sustainable. It does sound probable that this code path might be slow with lots of quick hook/unhooks, but measurements would help.
fscanf is quite slow, this implementation is almost twice as fast. Tried fgets as well but getline was faster.
Might want to replace the parsing in
ModuleInMemory
as well