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

log.isXXXEnabled() causes allocation overhead #476

Closed
kamilkloch opened this issue Aug 10, 2023 · 1 comment
Closed

log.isXXXEnabled() causes allocation overhead #476

kamilkloch opened this issue Aug 10, 2023 · 1 comment

Comments

@kamilkloch
Copy link

log.isDebugEnabled() causes a lot of unnecessary allocations, going through

    override def predicate(level: Level): CorePredicate =
      new CorePredicate.Impl(level, this)

in CoreLogger.Abstract

Arguably, this operation should be as lightweight as possible.

@kamilkloch kamilkloch changed the title log.isXXXEnabled() allocates a lot log.isXXXEnabled() causes allocation overhead Aug 10, 2023
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

No branches or pull requests

2 participants