Skip to content

Remove connection state machine log #266

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

Merged
merged 1 commit into from
Mar 18, 2022

Conversation

fabianfett
Copy link
Collaborator

Motivation

In trace mode we log every new state machine state. This is not necessary, since our state machine can be better described through all the inputs it receives. We log those in trace mode as well. When running a query with 2m rows, I can see in Instruments that we spend about 100ms in the trace log statement that I want to remove here – even if we don't use trace logging.

Changes

  • Remove unnecessary state log

Motivation

A bit faster code, less verbose output

@fabianfett fabianfett requested a review from gwynne March 16, 2022 08:22
@fabianfett fabianfett changed the title Remove state machine log Remove connection state machine log Mar 16, 2022
@fabianfett fabianfett added this to the 1.9.0 milestone Mar 16, 2022
Copy link
Member

@gwynne gwynne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would've wanted this removed even if there wasn't a perf drop from it - Fluent's trace logging is way too noisy historically as it is, and this certainly fits that category! 🙂

@fabianfett fabianfett merged commit 33fc957 into vapor:main Mar 18, 2022
@fabianfett fabianfett deleted the ff-remove-state-machine-log branch March 18, 2022 09:27
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