Skip to content

Make logging hot paths lighter.#2784

Merged
cbickel merged 1 commit into
apache:masterfrom
markusthoemmes:lighter-log
Sep 21, 2017
Merged

Make logging hot paths lighter.#2784
cbickel merged 1 commit into
apache:masterfrom
markusthoemmes:lighter-log

Conversation

@markusthoemmes
Copy link
Copy Markdown
Contributor

Logging is the hotspot in our application today. This takes a first stab at making the overhead a bit smaller by respecting the set log-level as early as currently possible and not do any extranous throwaway computation.

It also reduces a bit of unnecessary boxing for the sake of just trying to keep a single space out of the message.

@markusthoemmes markusthoemmes added the review Review for this PR has been requested and yet needs to be done. label Sep 20, 2017
Logging is **the** hotspot in our application today. This takes a first stab at making the overhead a bit smaller by respecting the set log-level as early as currently possible and not do any extranous throwaway computation.

It also reduces a bit of unnecessary boxing for the sake of just trying to keep a single space out of the message.
@markusthoemmes
Copy link
Copy Markdown
Contributor Author

PG1 2087 🔵

Copy link
Copy Markdown
Contributor

@cbickel cbickel left a comment

Choose a reason for hiding this comment

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

LGTM

@cbickel cbickel merged commit 52f41d4 into apache:master Sep 21, 2017
@rabbah
Copy link
Copy Markdown
Member

rabbah commented Sep 21, 2017

With these prs can we record pre and post improvements?

houshengbo pushed a commit to houshengbo/openwhisk that referenced this pull request Sep 22, 2017
Logging is **the** hotspot in our application today. This takes a first stab at making the overhead a bit smaller by respecting the set log-level as early as currently possible and not do any extranous throwaway computation.

It also reduces a bit of unnecessary boxing for the sake of just trying to keep a single space out of the message.
houshengbo pushed a commit to houshengbo/openwhisk that referenced this pull request Nov 13, 2017
Logging is **the** hotspot in our application today. This takes a first stab at making the overhead a bit smaller by respecting the set log-level as early as currently possible and not do any extranous throwaway computation.

It also reduces a bit of unnecessary boxing for the sake of just trying to keep a single space out of the message.
houshengbo pushed a commit to houshengbo/openwhisk that referenced this pull request Nov 13, 2017
Logging is **the** hotspot in our application today. This takes a first stab at making the overhead a bit smaller by respecting the set log-level as early as currently possible and not do any extranous throwaway computation.

It also reduces a bit of unnecessary boxing for the sake of just trying to keep a single space out of the message.
houshengbo pushed a commit to houshengbo/openwhisk that referenced this pull request Nov 14, 2017
Logging is **the** hotspot in our application today. This takes a first stab at making the overhead a bit smaller by respecting the set log-level as early as currently possible and not do any extranous throwaway computation.

It also reduces a bit of unnecessary boxing for the sake of just trying to keep a single space out of the message.
@markusthoemmes markusthoemmes deleted the lighter-log branch February 11, 2018 10:41
BillZong pushed a commit to BillZong/openwhisk that referenced this pull request Nov 18, 2019
Logging is **the** hotspot in our application today. This takes a first stab at making the overhead a bit smaller by respecting the set log-level as early as currently possible and not do any extranous throwaway computation.

It also reduces a bit of unnecessary boxing for the sake of just trying to keep a single space out of the message.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review Review for this PR has been requested and yet needs to be done.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants