File tree Expand file tree Collapse file tree 4 files changed +749
-661
lines changed
Expand file tree Collapse file tree 4 files changed +749
-661
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ $SCRIPTPATH/src/jsonminifier.cpp
1818$SCRIPTPATH /src/jsonparser.cpp
1919$SCRIPTPATH /src/stage1_find_marks.cpp
2020$SCRIPTPATH /src/stage2_build_tape.cpp
21+ $SCRIPTPATH /src/parsedjson.cpp
22+ $SCRIPTPATH /src/parsedjsoniterator.cpp
2123"
2224
2325# order matters
@@ -94,7 +96,7 @@ cat <<< '
9496#include "simdjson.h"
9597#include "simdjson.cpp"
9698int main(int argc, char *argv[]) {
97- const char * filename = argv[1];
99+ const char * filename = argv[1];
98100 std::string_view p = get_corpus(filename);
99101 ParsedJson pj = build_parsed_json(p); // do the parsing
100102 if( ! pj.isValid() ) {
@@ -117,7 +119,7 @@ echo "Giving final instructions:"
117119CPPBIN=${DEMOCPP%% .* }
118120
119121echo " Try :"
120- echo " c++ -march=native -O3 -std=c++11 -o ${CPPBIN} ${DEMOCPP} && ./${CPPBIN} jsonexamples/twitter.json "
122+ echo " c++ -march=native -O3 -std=c++11 -o ${CPPBIN} ${DEMOCPP} && ./${CPPBIN} ../ jsonexamples/twitter.json "
121123
122124SINGLEHDR=$SCRIPTPATH /singleheader
123125echo " Copying files to $SCRIPTPATH /singleheader "
@@ -126,9 +128,10 @@ echo "c++ -march=native -O3 -std=c++11 -o ${CPPBIN} ${DEMOCPP} && ./${CPPBIN} .
126128cp ${AMAL_C} ${AMAL_H} ${DEMOCPP} $SINGLEHDR
127129ls $SINGLEHDR
128130
131+ cd $SINGLEHDR && c++ -march=native -O3 -std=c++11 -o ${CPPBIN} ${DEMOCPP} && ./${CPPBIN} ../jsonexamples/twitter.json
132+
129133lowercase (){
130134 echo " $1 " | tr ' A-Z' ' a-z'
131135}
132136
133137OS=` lowercase \` uname\` `
134-
Original file line number Diff line number Diff line change 1- /* auto-generated on Fri 4 Jan 2019 20:12:48 EST. Do not edit! */
1+ /* auto-generated on Fri 22 Feb 2019 15:42:34 EST. Do not edit! */
22
33#include < iostream>
44#include " simdjson.h"
55#include " simdjson.cpp"
66int main (int argc, char *argv[]) {
7- const char * filename = argv[1 ];
7+ const char * filename = argv[1 ];
88 std::string_view p = get_corpus (filename);
99 ParsedJson pj = build_parsed_json (p); // do the parsing
1010 if ( ! pj.isValid () ) {
You can’t perform that action at this time.
0 commit comments