introducing a thread-local parser and removing ranges (#2412)

* introducing a thread-local parser

* adding functionality to release the memory

* some more documentation.

* fixing build

* adding benchmarks for 'from'

* generalizing the code somewhat.

* adding tests, fixing the benchmark (now with arrays and streams), and a
minor update to document_stream

* adding missing files (I forgot to check them).

* We cannot use [[nodiscard]] without guarding it, it is C++17

* fixing the cmake

* marking it as experimental

* removing ranges support (it is too experimental)

* putting back documentation.

* guarding SIMDJSON_CONSTEVAL more carefully.

---------

Co-authored-by: Daniel Lemire <dlemire@lemire.me>
This commit is contained in:
Daniel Lemire
2025-08-13 18:08:25 -04:00
committed by GitHub
parent 626eedc3d8
commit faf921bc7e
19 changed files with 1699 additions and 808 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
/* auto-generated on 2025-08-05 16:29:59 +0000. version 4.0.0 Do not edit! */
/* auto-generated on 2025-08-12 19:38:50 -0400. version 4.0.0 Do not edit! */
/* including simdjson.cpp: */
/* begin file simdjson.cpp */
#define SIMDJSON_SRC_SIMDJSON_CPP
@@ -1039,9 +1039,9 @@ using std::operator<<;
#endif
#if nssv_HAVE_NODISCARD
# define nssv_nodiscard [[nodiscard]]
# define nssv_nodiscard simdjson_warn_unused
#else
# define nssv_nodiscard /*[[nodiscard]]*/
# define nssv_nodiscard /*simdjson_warn_unused*/
#endif
// Additional includes:
+1089 -496
View File
File diff suppressed because it is too large Load Diff
Binary file not shown.