Previously we would allocate quite often in order to decompress and
parse the deck strings that were given to us. This could be alleviated by
precomputing some of the regular expressions, preallocating, and using
manual conversion logic instead of relying on json.
This could obviously be taken much further, but this seemed like a good
compromise on benefit while still retaining readability.
Previously we would allocate quite often in order to decompress and parse the deck strings that were given to us. This could be alleviated by precomputing some of the regular expressions, preallocating, and using manual conversion logic instead of relying on json.
This could obviously be taken much further, but this seemed like a good compromise on benefit while still retaining readability.
Benchmark comparison: