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

Only add logFn function to before if logFn exists #586

Merged
merged 1 commit into from
Mar 24, 2020
Merged

Conversation

thornjad
Copy link
Member

This is a new implementation of #387, but fixed.

Previously, we added a function which would use logFn if it exists.
Since this is all this function does, if logFn does not exist, we don't
need to add the function at all.

This should, in theory, provide a small performance boost as well, since
the operation of checking for logFn doesn't need to be performed on
every request log.

This is a new implementation of #387, but fixed.

Previously, we added a function which would use logFn if it exists.
Since this is all this function does, if logFn does not exist, we don't
need to add the function at all.

This should, in theory, provide a small performance boost as well, since
the operation of checking for logFn doesn't need to be performed on
every request log.
@thornjad thornjad added the patch version Small, non-breaking, bug fix or trivial change label Dec 16, 2019
@thornjad thornjad added this to the v0.13.0 milestone Dec 16, 2019
@thornjad thornjad modified the milestones: v0.13.0, v0.12.2 Dec 22, 2019
@thornjad thornjad merged commit e758f03 into master Mar 24, 2020
@thornjad thornjad deleted the logFn-skip-array branch March 24, 2020 14:49
thisIsTheFoxe added a commit to thisIsTheFoxe/http-server that referenced this pull request Mar 30, 2020
thisIsTheFoxe added a commit to thisIsTheFoxe/http-server that referenced this pull request Jan 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch version Small, non-breaking, bug fix or trivial change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants