From 221c55b6208621195c4af4f925df2b8d1b67351f Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Fri, 12 Mar 2021 14:21:23 -0500 Subject: [PATCH] Update README.md --- README.md | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/README.md b/README.md index fcb0a6a7..6fabeb48 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ The simdjson library is easily consumable with a single .h and .cpp file. ``` 2. Create `quickstart.cpp`: - ```c++ +```c++ #include "simdjson.h" using namespace simdjson; int main(void) { @@ -71,34 +71,6 @@ int main(void) { 100 results. ``` -### On Demand - -The new On Demand JSON parser is just as easy, but much faster due to just-in-time parsing. It is in -alpha right now. More information can be found in the [On Demand Guide](doc/ondemand.md). - -1. Do step 1 of the [Quick Start](#quick-start). -2. Create `quickstart.cpp`: - - ```c++ - #include "simdjson.h" - using namespace simdjson; - int main(void) { - ondemand::parser parser; - padded_string json = padded_string::load("twitter.json"); - ondemand::document tweets = parser.iterate(json); - std::cout << uint64_t(tweets["search_metadata"]["count"]) << " results." << std::endl; - } - ``` -3. `c++ -march=native -o quickstart quickstart.cpp simdjson.cpp` -4. `./quickstart` - ``` - 100 results. - ``` - -You'll notice that the code here is very similar to the [main Quick Start code](#quick-start) (and -indeed, it does the same thing). However, if you compare the performance, you should find On -Demand much faster. - Documentation -------------