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

macho: reduce heap allocations #105

Merged
merged 22 commits into from
Jan 28, 2024
Merged

macho: reduce heap allocations #105

merged 22 commits into from
Jan 28, 2024

Conversation

kubkon
Copy link
Owner

@kubkon kubkon commented Jan 27, 2024

Memory reduced to 1444.9MB from 2757.87MB according to Tracy.

Linker performance virtually unchanged:

$ hyperfine ./zld ./zld_old
Benchmark 1: ./zld
  Time (mean ± σ):      4.351 s ±  0.027 s    [User: 3.547 s, System: 2.467 s]
  Range (min … max):    4.308 s …  4.401 s    10 runs

Benchmark 2: ./zld_old
  Time (mean ± σ):      4.345 s ±  0.020 s    [User: 3.844 s, System: 2.106 s]
  Range (min … max):    4.319 s …  4.381 s    10 runs

Summary
  ./zld_old ran
    1.00 ± 0.01 times faster than ./zld

@kubkon kubkon merged commit 0ba7dac into main Jan 28, 2024
12 checks passed
@kubkon kubkon deleted the macho-preads branch January 28, 2024 09:36
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