-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
8 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35c0286
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this commit introduced performance loss for byte formatting - https://alexezeder.github.io/fmt_bnchmrk/format-to-trivial-integral.html.
35c0286
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh no, the results are missing from the website for some reason. Someday I will make it work properly, but for now, I can rerun benchmark for byte locally. I will do it tomorrow and post there results here.
35c0286
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are the results, for two commits - 35c0286 and c7173a3, this one and the parent one.
PC, x86_64, GCC 11.2, Clang 13
Raspberry, AArch64, GCC 9.3
35c0286
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexezeder, @vitaut,
Why
format_as(std::byte b)
is notconstexpr
andnoexcept
(fmt/include/fmt/format.h
Line 2993 in 3f9b743
Maybe will help to replace:
with:
?
35c0286
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@phprus, according to my tests this is not the case here. Both GCC and Clang on my PC generate executable that is indistinguishable from the repo version. Compiler explorer also produces the same assembly for that
constexpr ... noexcept
change and without it in header-only mode.35c0286
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The regression should be fixed in db5b899. Thanks, @alexezeder, for catching it!
35c0286
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, the latest results for db5b899 show that the regression is fixed now.
https://alexezeder.github.io/fmt_bnchmrk/format-to-trivial-integral.html