Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OffsetManager memory leak fix and use current source file to find dat… #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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