The compression ratio of traces is usually really low (sometimes less than 1%...?!) so we should probably just skip the manual compression step and do this at runtime.
We already have miniz in the repo, so maybe we can just use that? Since the ratio is so low we can prioritize performance and it will still almost certainly be super tiny compared to the uncompressed trace.
Oh, I didn't notice miniz. That should definitely do the trick as long as it's not too slow. If it is, we could probably use one of the fast lz* algorithms, I think they're pretty small.
The compression ratio of traces is usually really low (sometimes less than 1%...?!) so we should probably just skip the manual compression step and do this at runtime.
We already have miniz in the repo, so maybe we can just use that? Since the ratio is so low we can prioritize performance and it will still almost certainly be super tiny compared to the uncompressed trace.