Skip to content

Conversation

@nt153133
Copy link

OffsetManager memory leak fix and use current source file to find data file directory.

The patternfinder needs to be used in a using statement and allocated outside of the for loop. This brings the memory usage down from 113mb to about 4mb. The data file change is just a trick using the debug info from stack trace to get the current source file location and using that to get the path to the data files so the path doesn't need to be hardcoded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant