Odpověď na názor

Odpovídáte na názor ke článku Asynchroní parsování JSONu v C++20.

  • 7. 5. 2024 11:50

    Ondřej Novák

    Příklad:
    https://github.com/simdjson/simdjson?tab=readme-ov-file#quick-start


    $ tail -n 13 twitter.json
    "search_metadata": {
    "completed_in": 0.087,
    "max_id": 505874924095815700,
    "max_id_str": "505874924095­815681",
    "next_results": "?max_id=5058­74847260352512&q=%E4%B8%­80&count=100&in­clude_entities=1",
    "query": "%E4%B8%80",
    "refresh_url": "?since_id=505874­924095815681&q=%E4%B8%80­&include_enti­ties=1",
    "count": 1000,
    "test":ahoj svete,
    "since_id": 0,
    "since_id_str": "0"
    }
    }
    $ ./quickstart
    1000 results.

    Ani si nevšiml, že tam mám


    "test":ahoj svete,

    Pouze když to dám do "count":ahoj svete,


    $ ./quickstart
    terminate called after throwing an instance of 'simdjson::sim­djson_error'
    what(): INCORRECT_TYPE: The JSON element does not have the requested type.

    Takže simdjson je spíš jedno velké divadlo, než parser