This should improve string performance in ondemand by making the string processing runtime dispatched.

This commit is contained in:
Daniel Lemire
2022-06-21 17:53:37 -04:00
parent e6c90b8efb
commit 667f488c2c
19 changed files with 240 additions and 157 deletions
@@ -158,6 +158,7 @@ SIMDJSON_POP_DISABLE_WARNINGS
//
// Stage 2
//
#include "generic/stage2/stringparsing.h"
#include "generic/stage2/tape_builder.h"
//
@@ -198,6 +199,10 @@ simdjson_warn_unused error_code dom_parser_implementation::stage2_next(dom::docu
return stage2::tape_builder::parse_document<true>(*this, _doc);
}
simdjson_warn_unused uint8_t *implementation::parse_string(const uint8_t *src, uint8_t *dst) const noexcept {
return icelake::stringparsing::parse_string(src, dst);
}
simdjson_warn_unused error_code dom_parser_implementation::parse(const uint8_t *_buf, size_t _len, dom::document &_doc) noexcept {
auto error = stage1(_buf, _len, stage1_mode::regular);
if (error) { return error; }