-
Notifications
You must be signed in to change notification settings - Fork 17
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
free: Implement almost all functions of the free
commands
#35
Conversation
`h` means `human` in GNU procps.
For `-h` and `--human` flag. Also implement it's unit test.
great start but |
Okay, next I'll split it into multiple PR. So what should this PR do next? |
I have a question about using if instead of match: Sometimes match looks cleaner and more direct, so why not use match? Because match won't be optimized by branch prediction? |
Because match is used when we have several diverse values.
I hope that, between Rust and LLVM, it will generate the same code. |
https://godbolt.org/z/Ec3aedhWG confirms that is generate the same code |
I got it |
completes almost all the most often flags for the |
Sorry, i only realize thi now. Could you please add tests in |
Aims
This pull request aims to implement almost all function about
free
command.And also fix wron arguments and flags.
TODO
-h
flag's function-h
--human
flag--line
#21