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

string_ncat() optimization: realloc() calls #109

Merged
merged 1 commit into from
Mar 4, 2016
Merged

string_ncat() optimization: realloc() calls #109

merged 1 commit into from
Mar 4, 2016

Conversation

f2404
Copy link
Collaborator

@f2404 f2404 commented Mar 2, 2016

Decrease realloc() calls number by multiplying the allocated memory size by 2.
For a large output command, such as '-As rar', this allowed to decrease number of calls from 72 to 8.

Decrease realloc() calls number by multiplying the allocated memory size by 2.
For a large output command, such as '-As rar', this allowed to decrease number of calls from 72 to 8.
f2404 added a commit that referenced this pull request Mar 4, 2016
string_ncat() optimization: reduce realloc() calls number
@f2404 f2404 merged commit fd1c550 into archlinuxfr:master Mar 4, 2016
@f2404 f2404 deleted the string_ncat_optim branch March 4, 2016 08:19
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