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

Kernel/CommandLine: parsing with preallocation to prevent rehashing #3213

Merged
merged 1 commit into from
Aug 23, 2020

Conversation

tryfinally
Copy link
Contributor

resize hashmap upfront
reduce string copies

@awesomekling
Copy link
Collaborator

Please format your commit messages like every other commit message in the project. :)

1. Preallocate args hashMap to prevent rehashing
2. Use move to prevent string copys.
@tryfinally tryfinally changed the title Kernel/CommandLine parsing with preallocation to prevent rehashing Kernel/CommandLine: parsing with preallocation to prevent rehashing Aug 20, 2020
@awesomekling awesomekling merged commit 7506adb into SerenityOS:master Aug 23, 2020
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.

None yet

3 participants