Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c6a5881392 |
No files matched your search
+4
-4
@@ -7,7 +7,7 @@
|
||||
"name": "check-mermaid",
|
||||
"dependencies": {
|
||||
"jsdom": "31.0.1",
|
||||
"mermaid": "12.3.0"
|
||||
"mermaid": "12.4.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@antfu/install-pkg": {
|
||||
@@ -1209,9 +1209,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/mermaid": {
|
||||
"version": "12.3.0",
|
||||
"resolved": "https://registry.npmjs.org/mermaid/-/mermaid-12.3.0.tgz",
|
||||
"integrity": "sha512-4113TdXeLAsMruJ79OpFL5O8+LTFXhQqZ260rF3tgUmiNAtRm4Uume04I+65PRN6yZ69J4f8rVYWW8zRk65UYw==",
|
||||
"version": "12.4.0",
|
||||
"resolved": "https://registry.npmjs.org/mermaid/-/mermaid-12.4.0.tgz",
|
||||
"integrity": "sha512-j2gvsGUFeS/53WdYLl9H5G2YtMZX9G/PlCvV3E5Pf4j5XSnK19DwazU6wki7OTcKeYKed7+qujRDLhy8NV2zBg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@braintree/sanitize-url": "^7.1.2",
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"jsdom": "31.0.1",
|
||||
"mermaid": "12.3.0"
|
||||
"mermaid": "12.4.0"
|
||||
}
|
||||
}
|
||||
@@ -1510,19 +1510,7 @@ class serializer
|
||||
{
|
||||
flush();
|
||||
}
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
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);
|
||||
std::memcpy(write_buffer.data() + write_buffer_pos, s, length);
|
||||
write_buffer_pos += length;
|
||||
}
|
||||
|
||||
|
||||
Generated
+1
-13
@@ -39101,19 +39101,7 @@ class serializer
|
||||
{
|
||||
flush();
|
||||
}
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
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);
|
||||
std::memcpy(write_buffer.data() + write_buffer_pos, s, length);
|
||||
write_buffer_pos += length;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user