Dr. Colin Hirsch

Results 25 comments of Dr. Colin Hirsch

Btw, the `toBuilderEvents` class in my fork, as well as the yet-to-be-written `fromBuilder`, give many more possibilities; the unified Events interface in the taocpp/json library would allow direct conversion of...

FYI, the glue code to produce taocpp/json Events from a `Builder` has now been added. With the taocpp/json based `Parser`, and the `builderToJson()` function in the new header `velocypack/Json.h`, my...

```c++ #include "../test.h" #include "velocypack/vpack.h" // Nativejson-benchmark integration of ColinH/velocypack, // an experimental arangodb/velocypack plus taocpp/json. class StatHandler { public: StatHandler(Stat& stat) : stat_(stat) {} void null() { stat_.nullCount++; }...

@kvahed @jsteemann FYI, just moved everything into the `taojson` branch in my fork, i.e. https://github.com/ColinH/velocypack/tree/taojson .

Just to clarify, I'm suggesting a third option for this case: Leave the array type as `0x05`, which indicates an 8-byte size, independent of whether the size would fit in...

Let's use an example, an array consisting of the single number 1. We have seen that, assuming that the encoder doesn't know the (size of the) total size in advance...

Sounds good, then the padding with 0x02/3/4 and zero-bytes can be deprecated and at some point removed. However regarding backwards compatibility, the important part is that the padding with 0x02/3/4...

FYI we just updated [taocpp/json](https://github.com/taocpp/json) with a [hacked version](https://github.com/taocpp/json/blob/master/include/tao/json/external/ryu.hpp) of the relatively new [ulfjack/ryu](https://github.com/ulfjack/ryu) which makes double-to-string conversion 2-3 times faster than the double-conversion library.

The PEGTL is highly modular and there are many things that can be done to improve parsing performance. However the `parse_tree` included with the PEGTL is more of an educational...

The idea is not to make the parse tree as fast as possible, but to create a more specific and optimised data structure while parsing, one that minimises memory allocations...