Skip to content

Commit

Permalink
update simdjson library to version 3.9.5
Browse files Browse the repository at this point in the history
  • Loading branch information
striezel committed Jul 4, 2024
1 parent fee9611 commit 1b1605f
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 64 deletions.
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ home directory and thus would not search for an existing configuration file in
the user's home directory.

simdjson, the library used for JSON parsing, has been updated from version 3.1.6
to version 3.9.4.
to version 3.9.5.

nlohmann/json, the library used for JSON parsing when simdjson is not supported,
has been updated from version 3.11.2 to version 3.11.3.
Expand Down
2 changes: 1 addition & 1 deletion third-party/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ Currently, the following libraries are here:
by Niels Lohmann <http://nlohmann.me>,
licensed under the MIT License <http://opensource.org/licenses/MIT>

* **simdjson**: simdjson: parsing gigabytes of JSON per second, version 3.9.4,
* **simdjson**: simdjson: parsing gigabytes of JSON per second, version 3.9.5,
by Daniel Lemire <https://github.com/simdjson/simdjson>,
licensed under the Apache License 2.0 <https://opensource.org/licenses/Apache-2.0>
15 changes: 10 additions & 5 deletions third-party/simdjson/simdjson.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* auto-generated on 2024-06-11 14:08:20 -0400. Do not edit! */
/* auto-generated on 2024-07-04 16:26:22 -0400. Do not edit! */
/* including simdjson.cpp: */
/* begin file simdjson.cpp */
#define SIMDJSON_SRC_SIMDJSON_CPP
Expand Down Expand Up @@ -224,6 +224,11 @@ using std::size_t;
#define SIMDJSON_NO_SANITIZE_UNDEFINED
#endif

#if defined(__clang__) || defined(__GNUC__)
#define simdjson_pure [[gnu::pure]]
#else
#define simdjson_pure
#endif

#if defined(__clang__) || defined(__GNUC__)
#if defined(__has_feature)
Expand Down Expand Up @@ -6020,14 +6025,14 @@ class dom_parser_implementation {
*
* @return Current capacity, in bytes.
*/
simdjson_inline size_t capacity() const noexcept;
simdjson_pure simdjson_inline size_t capacity() const noexcept;

/**
* The maximum level of nested object and arrays supported by this parser.
*
* @return Maximum depth, in bytes.
*/
simdjson_inline size_t max_depth() const noexcept;
simdjson_pure simdjson_inline size_t max_depth() const noexcept;

/**
* Ensure this parser has enough memory to process JSON documents up to `capacity` bytes in length
Expand Down Expand Up @@ -6068,11 +6073,11 @@ simdjson_inline dom_parser_implementation::dom_parser_implementation() noexcept
simdjson_inline dom_parser_implementation::dom_parser_implementation(dom_parser_implementation &&other) noexcept = default;
simdjson_inline dom_parser_implementation &dom_parser_implementation::operator=(dom_parser_implementation &&other) noexcept = default;

simdjson_inline size_t dom_parser_implementation::capacity() const noexcept {
simdjson_pure simdjson_inline size_t dom_parser_implementation::capacity() const noexcept {
return _capacity;
}

simdjson_inline size_t dom_parser_implementation::max_depth() const noexcept {
simdjson_pure simdjson_inline size_t dom_parser_implementation::max_depth() const noexcept {
return _max_depth;
}

Expand Down
Loading

0 comments on commit 1b1605f

Please sign in to comment.