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"
|
||||
}
|
||||
}
|
||||
@@ -1322,11 +1322,8 @@ class json_sax_dom_parser : public json_sax_dom_error_state
|
||||
}
|
||||
|
||||
/// the number of members an object collects on the stack before it
|
||||
/// switches to storing them directly; both collect_member() and a stored
|
||||
/// object below key_index_threshold search their keys linearly, so the
|
||||
/// object stays on the stack as long as a linear search is cheap, and a
|
||||
/// spilled object looks up its keys in a hash table right away
|
||||
static constexpr std::size_t object_buffer_limit = key_index_threshold;
|
||||
/// switches to storing them directly
|
||||
static constexpr std::size_t object_buffer_limit = 32;
|
||||
|
||||
void reserve_members()
|
||||
{
|
||||
|
||||
Generated
+2
-5
@@ -17540,11 +17540,8 @@ class json_sax_dom_parser : public json_sax_dom_error_state
|
||||
}
|
||||
|
||||
/// the number of members an object collects on the stack before it
|
||||
/// switches to storing them directly; both collect_member() and a stored
|
||||
/// object below key_index_threshold search their keys linearly, so the
|
||||
/// object stays on the stack as long as a linear search is cheap, and a
|
||||
/// spilled object looks up its keys in a hash table right away
|
||||
static constexpr std::size_t object_buffer_limit = key_index_threshold;
|
||||
/// switches to storing them directly
|
||||
static constexpr std::size_t object_buffer_limit = 32;
|
||||
|
||||
void reserve_members()
|
||||
{
|
||||
|
||||
@@ -247,8 +247,8 @@ TEST_CASE("regression test for issue #5673 - ordered_json::emplace with a non-rv
|
||||
namespace
|
||||
{
|
||||
// the sizes around which the DOM parser changes how it stores the elements of
|
||||
// an array (16) and the members of an object in a vector (64, which is also
|
||||
// where the key index starts)
|
||||
// an array (16) and the members of an object in a vector (32, and 64 for the
|
||||
// key index)
|
||||
const std::array<std::size_t, 17> container_sizes = {{0, 1, 2, 3, 15, 16, 17, 18, 31, 32, 33, 34, 63, 64, 65, 66, 200}};
|
||||
|
||||
template<typename Json>
|
||||
|
||||
Reference in new issue
Block a user