Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f750fb97dc |
No files matched your search
@@ -30,4 +30,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: 'Dependency Review'
|
- name: 'Dependency Review'
|
||||||
uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0
|
uses: actions/dependency-review-action@bbc44d14a204704ccc493733616cd1e93a0321ec # v5.0.1
|
||||||
@@ -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