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

High memory use, possible leak when reading a MachO file #31

Open
michaeleisel opened this issue Sep 20, 2022 · 1 comment
Open

High memory use, possible leak when reading a MachO file #31

michaeleisel opened this issue Sep 20, 2022 · 1 comment

Comments

@michaeleisel
Copy link

I recently tried to use MachO to read a large (1.3GB) Mach-O dSYM file, and found that it ended up using about 4GB of memory and didn't free that memory even when I tried to get it to be garbage collected. So, it seems like there may be two issues here, one of unnecessarily large memory usage, and the other of a memory leak. Is MachO not just collecting metadata? It seems like that would use almost no memory at all.

@sashs
Copy link
Owner

sashs commented Sep 21, 2022

Hi, many thanks.
I assume the reason is that I tried to make things easier accessible, e.g. Strings. Therefore, they get copied at some places. I will look at that.

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

No branches or pull requests

2 participants