temporary fork of saphyr with serde support merged into main.
d3b9641125
We reserve bufmaxlen bytes in the string, but then proceed to push up to bufmaxlen chars. Therefore it is possible that the string will need to reallocate. A different solution would be to reserve 4*bufmaxlen bytes. Removing the assert is probably ok, because the attempt to pre-allocate is just a performance optimization. |
||
---|---|---|
parser |