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] Add primitive hints to logging level functions #182

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

alexander-yakushev
Copy link
Contributor

Currently, Toucan's logging macros always produce allocation overhead by converting between primitive ints and Integer objects. This change ensures that primitive arities are chosen, and hence, there are no allocations if the logging level mismatches the logging statement.

Copy link

codecov bot commented Sep 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.23%. Comparing base (e14a45e) to head (97843a8).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #182   +/-   ##
=======================================
  Coverage   83.23%   83.23%           
=======================================
  Files          37       37           
  Lines        2511     2511           
  Branches      215      215           
=======================================
  Hits         2090     2090           
  Misses        206      206           
  Partials      215      215           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@camsaul camsaul merged commit 646bbd1 into camsaul:master Oct 4, 2024
10 checks passed
@alexander-yakushev alexander-yakushev deleted the logging-hints branch October 4, 2024 19:39
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