mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
5c590b8434
* Update basic.md to document JSON pointer for On Demand. * Add automatic rewind for at_pointer * Remove DOM examples in basics.md and update documentation reflecting addition of at_pointer automatic rewinding. * Review * Add test * Add document_stream constructors and iterate_many * Attempt to implement streaming. * Kind of fixed next() for getting next document * Temporary save. * Putting in working order. * Add working doc_index and add function next_document() * Attempt to implement streaming. * Re-anchoring json_iterator after a call to stage 1 * I am convinced it should be a 'while'. * Add source() with test. * Add truncated_bytes(). * Fix casting issues. * Fix old style cast. * Fix privacy issue. * Fix privacy issues. * Again * . * Add more tests. Add error() for iterator class. * Fix source() to not included whitespaces between documents. * Fixing CI. * Fix source() for multiple batches. Add new tests. * Fix batch_start when document has leading spaces. Add new tests for that. * Add new tests. * Temporary save. * Working hacky multithread version. * Small fix in header files. * Correct version (not working). * Adding a move assignment to ondemand::parser. * Fix attempt by changing std::swap. * Moving DEFAULT_BATCH_SIZE and MINIMAL_BATCH_SIZE. * Update doc and readme tests. * Update basics.md * Update readme_examples tests. * Fix exceptions in test. * Partial setup for amazon_cellphones. * Benchmark with vectors. * Benchmark with maps * With vectors again. * Fix for weighted average. * DOM benchmark. * Fix typos. Add On Demand benchmark. * Add large amazon_cellphones benchmark for DOM * Add benchmark for On demand. * Fix broken read_me test. * Add parser.threaded to enable/disable thread usage. Co-authored-by: Daniel Lemire <lemire@gmail.com>
34 lines
1.2 KiB
C++
34 lines
1.2 KiB
C++
namespace simdjson {
|
|
namespace SIMDJSON_IMPLEMENTATION {
|
|
/**
|
|
* A fast, simple, DOM-like interface that parses JSON as you use it.
|
|
*
|
|
* Designed for maximum speed and a lower memory profile.
|
|
*/
|
|
namespace ondemand {
|
|
|
|
/** Represents the depth of a JSON value (number of nested arrays/objects). */
|
|
using depth_t = int32_t;
|
|
|
|
} // namespace ondemand
|
|
} // namespace SIMDJSON_IMPLEMENTATION
|
|
} // namespace simdjson
|
|
|
|
#include "simdjson/generic/ondemand/json_type.h"
|
|
#include "simdjson/generic/ondemand/token_position.h"
|
|
#include "simdjson/generic/ondemand/logger.h"
|
|
#include "simdjson/generic/ondemand/raw_json_string.h"
|
|
#include "simdjson/generic/ondemand/token_iterator.h"
|
|
#include "simdjson/generic/ondemand/json_iterator.h"
|
|
#include "simdjson/generic/ondemand/value_iterator.h"
|
|
#include "simdjson/generic/ondemand/array_iterator.h"
|
|
#include "simdjson/generic/ondemand/object_iterator.h"
|
|
#include "simdjson/generic/ondemand/array.h"
|
|
#include "simdjson/generic/ondemand/document.h"
|
|
#include "simdjson/generic/ondemand/value.h"
|
|
#include "simdjson/generic/ondemand/field.h"
|
|
#include "simdjson/generic/ondemand/object.h"
|
|
#include "simdjson/generic/ondemand/parser.h"
|
|
#include "simdjson/generic/ondemand/document_stream.h"
|
|
#include "simdjson/generic/ondemand/serialization.h"
|