Closed dtolnay closed 4 months ago
Thanks!
This reduces the runtime. I'm don't know the simplekeys code completely, so I would like to have a closer look.
There are still cases where the runtime gets quadratic (when it's not simply {{{
), I'm currently running some benchmarks.
I'm wondering how this ABI change can be realeased. I guess we would need at least a new minor version and change the so file version in order to not break existing bindings?
To also handle [{"":[[{"":[[{"":[...
, a different solution is going to be needed.
The following program reproduces scan time that is quadratic in the size of the input document.
Before: With each doubling of input size, the runtime increases by a factor of four.
After: Runtime is linear in the input size. Program can handle inputs which are two orders of magnitude larger than before.