Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d2d14f861c |
No files matched your search
@@ -2,7 +2,7 @@ wheel==0.48.0
|
|||||||
|
|
||||||
mkdocs==1.6.1 # documentation framework
|
mkdocs==1.6.1 # documentation framework
|
||||||
mkdocs-git-revision-date-localized-plugin==1.7.0 # plugin "git-revision-date-localized"
|
mkdocs-git-revision-date-localized-plugin==1.7.0 # plugin "git-revision-date-localized"
|
||||||
mkdocs-material==9.8.1 # theme for mkdocs
|
mkdocs-material==9.8.2 # theme for mkdocs
|
||||||
mkdocs-material-extensions==1.3.1 # extensions
|
mkdocs-material-extensions==1.3.1 # extensions
|
||||||
mkdocs-minify-plugin==0.8.0 # plugin "minify"
|
mkdocs-minify-plugin==0.8.0 # plugin "minify"
|
||||||
mkdocs-redirects==1.2.3 # plugin "redirects"
|
mkdocs-redirects==1.2.3 # plugin "redirects"
|
||||||
|
|||||||
@@ -1510,19 +1510,7 @@ class serializer
|
|||||||
{
|
{
|
||||||
flush();
|
flush();
|
||||||
}
|
}
|
||||||
#if defined(__GNUC__) && !defined(__clang__)
|
std::memcpy(write_buffer.data() + write_buffer_pos, s, length);
|
||||||
std::size_t copy_length = length;
|
|
||||||
// GCC knows from the test above that the length is below the size of
|
|
||||||
// the write buffer, and with that bound it may expand the memcpy into
|
|
||||||
// "rep movsq" (seen with -march=x86-64-v3 and -mtune=generic) instead
|
|
||||||
// of calling memcpy. For the short runs written here its start-up cost
|
|
||||||
// is far above that of the call (dump() with ensure_ascii 80 % slower
|
|
||||||
// on Sapphire Rapids), so hide the bound from the optimizer.
|
|
||||||
__asm__("" : "+r"(copy_length));
|
|
||||||
#else
|
|
||||||
const std::size_t copy_length = length;
|
|
||||||
#endif
|
|
||||||
std::memcpy(write_buffer.data() + write_buffer_pos, s, copy_length);
|
|
||||||
write_buffer_pos += length;
|
write_buffer_pos += length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Generated
+1
-13
@@ -39101,19 +39101,7 @@ class serializer
|
|||||||
{
|
{
|
||||||
flush();
|
flush();
|
||||||
}
|
}
|
||||||
#if defined(__GNUC__) && !defined(__clang__)
|
std::memcpy(write_buffer.data() + write_buffer_pos, s, length);
|
||||||
std::size_t copy_length = length;
|
|
||||||
// GCC knows from the test above that the length is below the size of
|
|
||||||
// the write buffer, and with that bound it may expand the memcpy into
|
|
||||||
// "rep movsq" (seen with -march=x86-64-v3 and -mtune=generic) instead
|
|
||||||
// of calling memcpy. For the short runs written here its start-up cost
|
|
||||||
// is far above that of the call (dump() with ensure_ascii 80 % slower
|
|
||||||
// on Sapphire Rapids), so hide the bound from the optimizer.
|
|
||||||
__asm__("" : "+r"(copy_length));
|
|
||||||
#else
|
|
||||||
const std::size_t copy_length = length;
|
|
||||||
#endif
|
|
||||||
std::memcpy(write_buffer.data() + write_buffer_pos, s, copy_length);
|
|
||||||
write_buffer_pos += length;
|
write_buffer_pos += length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user