Daniel Lemire
d6f33e4830
This adds a little test to see if we can compiler with very strict flags (conventional casts) ( #1417 )
...
* This adds a little test to see if we can compiler with very strict flags.
* Trimming a leftover old-style cast.
* More cleaning.
* A few more pedantic casts.
2021-01-27 18:37:30 -05:00
Tibbel
5613d30e97
partly replacement old-style-cast to c++ *_cast ( #1403 )
...
Co-authored-by: Tibbel <tibbel@ma-gi.de>
2021-01-27 13:33:48 -05:00
John Keiser
1bfbb6448a
Check out-of-order error in object index
2021-01-26 20:49:14 -08:00
John Keiser
c5b44f44f9
Add partial out-of-order check for field lookup
2021-01-26 20:00:39 -08:00
John Keiser
22b3ea93a8
Emit an error if user tries to iterate arrays out of order
2021-01-26 20:00:19 -08:00
John Keiser
fe726b0f80
Split up ondemand_dom_api_tests for sanitize build times
2021-01-26 19:42:37 -08:00
John Keiser
18ecc0032d
Reenable test that is now working
2021-01-26 15:15:09 -08:00
John Keiser
1a1532c8cc
Return INCORRECT_TYPE when numbers fail to parse
...
Also add tests for trying to get multiple types in a row
2021-01-26 14:59:13 -08:00
John Keiser
e6d2b7759a
Fix assertion when getting array after failing to get a scalar
...
Also remove distinction between & and && for array start, acting like
other types
2021-01-26 14:09:54 -08:00
Daniel Lemire
c96ff018fe
Version 0.8.
2021-01-22 12:04:08 -05:00
Daniel Lemire
1005c62e90
It seems that we export too many targets. ( #1385 )
...
* It seems that we export too many targets.
* Adding missing word.
* Let us try this.
* Restoring dead line.
* Some fixes.
* Update src/CMakeLists.txt
Co-authored-by: Alexander Neumann <30894796+Neumann-A@users.noreply.github.com>
* Update cmake/simdjson-config.nothread.cmake.in
Co-authored-by: Alexander Neumann <30894796+Neumann-A@users.noreply.github.com>
* Update cmake/simdjson-config.cmake.in
Co-authored-by: Alexander Neumann <30894796+Neumann-A@users.noreply.github.com>
* Update CMakeLists.txt
Co-authored-by: Alexander Neumann <30894796+Neumann-A@users.noreply.github.com>
* Update CMakeLists.txt
Co-authored-by: Alexander Neumann <30894796+Neumann-A@users.noreply.github.com>
* Removing useless file
* Simplifying the PR somewhat.
Co-authored-by: Alexander Neumann <30894796+Neumann-A@users.noreply.github.com>
2021-01-20 13:20:49 -05:00
Daniel Lemire
2a714f4e37
Hide the std::pair inheritance in our result instances ( #1396 )
...
* Fixing issue 1243
* The tie must go.
* Having std::pair be a protected inheritance breaks on demand.
* Putting it back.
* You really want to use emplace.
* Fixing one botched test.
* Prettier test.
* Using safer code.
* Fixing unsafe code.
* Simplifying the fuzzer.
* Trying another way.
* Ok. It should work without exceptions.
* Removing trailing spaces.
2021-01-18 12:00:02 -05:00
Daniel Lemire
73063e2dab
This adds a test to explain better the issue 1341: Support conversion of simdjson_result lvalue to dom::element ( #1397 )
...
* This adds a test to explain better the issue.
* Guarding it since it can throw.
2021-01-16 15:08:27 -05:00
Daniel Lemire
6e5d232ccc
Fixing forgotten namespace.
2021-01-16 02:50:55 +00:00
Daniel Lemire
8e96e38099
We should trim out old benchmarks. ( #1379 )
2021-01-15 14:46:05 -05:00
Daniel Lemire
7517b9b122
Updating headers.
2021-01-14 17:37:43 -05:00
John Keiser
55faf4c5bc
Recommend simdjson::ondemand over simdjson::builtin::ondemand ( #1380 )
...
Co-authored-by: Daniel Lemire <lemire@gmail.com>
2021-01-14 17:33:49 -05:00
John Keiser
92372412d9
Merge pull request #1387 from simdjson/jkeiser/ondemand-scalar-order
...
Allow JSON values to be parsed later / out of order
2021-01-14 11:02:53 -08:00
Daniel Lemire
990da22249
Merge branch 'master' into jkeiser/ondemand-scalar-order
2021-01-13 14:21:16 -05:00
John Keiser
3849cc400e
Merge pull request #1372 from simdjson/jkeiser/ondemand-sajson
...
Add sajson and nlohmann_json benchmarks
2021-01-13 09:33:53 -08:00
ihsinme
84b0e84447
fix function was exited without releasing ( #1389 )
...
* Update jsoncheck.cpp
* Update minefieldcheck.cpp
* Update jsoncheck.cpp
* Update minefieldcheck.cpp
2021-01-12 18:08:27 -05:00
Daniel Lemire
3b8486665a
Removing trailing white space.
2021-01-12 18:04:51 -05:00
friendlyanon
451c393ef1
[skip ci] Skip CI for Github ( #1336 )
...
* Add conditional to github workflows
* [skip ci] Document and encourage skipping CI
Co-authored-by: friendlyanon <friendlyanon@users.noreply.github.com>
2021-01-11 19:08:01 -05:00
Nicolai Grodzitski
095691160b
Add element representation trivially_copyable property test ( #1377 )
...
* Add element representation trivially_copyable property test
Releates to issue #1374
* Change test label
2021-01-11 19:06:59 -05:00
Daniel Lemire
7597cb354c
Folding the line.
2021-01-11 18:49:35 -05:00
Daniel Lemire
bd2a31a0fe
Minor edits regarding the On Demand documentation. ( #1384 )
...
* Minor edits regarding the On Demand documentation.
* Adding more instructions for CMake
* Tweaking.
* Adding changes requested by John.
* Bringing back detailed explanations of -march=native.
2021-01-11 18:48:02 -05:00
John Keiser
be61650102
Add top_tweet benchmark to test laziness
2021-01-11 15:19:26 -08:00
John Keiser
3279c2f15b
Remove unnecessary "try_get_XXX" methods
...
Also don't distinguish between & and && (instead, advance the first time
you encounter a scalar no matter what)
2021-01-11 15:19:26 -08:00
John Keiser
38da15b501
Rename checkpoint() -> position(), add token_position type
2021-01-11 15:19:24 -08:00
John Keiser
0f515785c6
Support reading scalars out of order
2021-01-11 15:17:46 -08:00
John Keiser
66db102c70
Use imprecise double comparison for sajson
2021-01-11 15:12:12 -08:00
John Keiser
ab859f7952
Add nlohmann_json benchmarks
2021-01-11 15:12:12 -08:00
John Keiser
6367e55a5f
Use new double differ in kostya/large_random benchmarks
2021-01-11 15:12:12 -08:00
Daniel Lemire
b61f2799a8
This makes the float errors explicit.
2021-01-11 15:12:12 -08:00
John Keiser
1b4d3bcbb6
Add sajson benchmarks
2021-01-11 15:12:12 -08:00
John Keiser
45479558ba
Merge pull request #1376 from simdjson/jkeiser/ondemand-runtime
...
Use runtime-selected implementation for stage 1 on demand
2021-01-11 14:59:52 -08:00
John Keiser
6fed8d2a26
Use active implementation for stage 1 on demand
2021-01-11 14:57:52 -08:00
Daniel Lemire
7dbe4caf3f
Taking a float and adding hundreds of zeros, you may get a truncated value that is just one over the desired value (bug fix) ( #1388 )
...
* Found a bug where if take some float and add many zeros, you may get a truncated value that is just one over the desired value.
2021-01-11 17:07:25 -05:00
John Keiser
ce1756425f
Merge pull request #1360 from simdjson/jkeiser/ondemand-docs
...
Add On Demand documentation
2021-01-09 13:34:08 -08:00
John Keiser
920f535500
Reamalgamate
2021-01-07 08:49:54 -08:00
Daniel Lemire
f29b70c63e
Adding GitHub Actions VS - without exceptions. ( #1362 )
...
* Adding GitHub Actions VS - without exceptions.
* Rename.
2021-01-06 09:40:35 -05:00
John Keiser
1e690e505b
Merge pull request #1371 from simdjson/jkeiser/ondemand-insitu-manualtime
...
Add yyjson_insitu tests, make insitu tests more accurate
2021-01-05 14:38:52 -08:00
John Keiser
cd27bf0745
Add yyjson_insitu tests
2021-01-05 12:16:19 -08:00
John Keiser
62ded15cd8
Rename tweets/text/points -> result
2021-01-05 11:55:57 -08:00
John Keiser
bc6907d280
Handle in situ document copies outside of the loop
2021-01-05 11:52:05 -08:00
John Keiser
dcd2e13aec
Measure time more accurately
2021-01-05 10:45:49 -08:00
John Keiser
cfff8a5ed5
Merge pull request #1368 from simdjson/jkeiser/ondemand-rapidjson
...
Head-to-head rapidjson benchmarks
2021-01-05 09:58:22 -08:00
John Keiser
2d760e75dc
Remove public: from structs
2021-01-05 09:10:22 -08:00
John Keiser
f071a15591
Add insitu versions of rapidjson benchmark
2021-01-04 20:30:54 -08:00
John Keiser
6a595231b0
Get rid of templates from rapidjson benchmarks
2021-01-04 20:20:24 -08:00