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

Fix loader usage, shave off a few bytes #1016

Merged
merged 5 commits into from
Dec 31, 2023
Merged

Conversation

mrdomino
Copy link
Collaborator

@mrdomino mrdomino commented Dec 15, 2023

The -f functionality was removed in ape loader version 1.5.

Shaves some bytes off here and there; functionality remains the same modulo usage string, but each change reduces binary size slightly.

-f was removed in 1.5. As there is now only one flag, a couple more
bytes can be shaved off as well.
Shaves off a few bytes, paying for the cost of `RealPath` and then some
on x86_64 and offsetting some of the cost to aarch64.
@mrdomino mrdomino marked this pull request as draft December 24, 2023 18:36
Removes `-h` and flags from usage. Keeps flag-parsing logic the same,
i.e. still accepts `-h` / `--help`. Only difference is what fd and rc
the usage uses.

Still over 1k north of 8192.
@mrdomino
Copy link
Collaborator Author

Calling it; this is ready to go if we want it. If I understand correctly it's not going to make a difference with everything being 4k-aligned, but I believe this is a (slight) improvement.

@mrdomino mrdomino marked this pull request as ready for review December 31, 2023 04:24
@jart jart merged commit c9550af into jart:master Dec 31, 2023
5 checks passed
@mrdomino mrdomino deleted the loadergolf branch December 31, 2023 19:38
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.

2 participants