Skip to content

RUM-2880 Prevent performance impact for internal logging#79

Merged
xgouchet merged 1 commit into
developfrom
xgouchet/RUM-2880/isLogLevelAllowed
Jan 18, 2024
Merged

RUM-2880 Prevent performance impact for internal logging#79
xgouchet merged 1 commit into
developfrom
xgouchet/RUM-2880/isLogLevelAllowed

Conversation

@xgouchet

Copy link
Copy Markdown
Contributor

What does this PR do?

Fix #78

Following suggestions by @slheavner , we prevented too many rendez vous with the main thread in our internal logger by:

  • disabling internal logs altogether when not in development mode
  • memoizing the verbosity in the current thread to avoid too many lookups

@xgouchet
xgouchet requested a review from a team as a code owner January 17, 2024 09:07
@xgouchet
xgouchet force-pushed the xgouchet/RUM-2880/isLogLevelAllowed branch from df57752 to 8dc83d2 Compare January 18, 2024 07:25
@xgouchet
xgouchet force-pushed the xgouchet/RUM-2880/isLogLevelAllowed branch from 8dc83d2 to db1c5a6 Compare January 18, 2024 07:30
@xgouchet
xgouchet merged commit 0a393dc into develop Jan 18, 2024
@xgouchet
xgouchet deleted the xgouchet/RUM-2880/isLogLevelAllowed branch January 18, 2024 08:01
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.

isLogLevelAllowed thread rendezvous on global node

2 participants