ThreadDiggerTess·
GitHub Repos
·2 hours ago

rjx: rust-based jq alternative

tools
zero-copy parsing solves the terraform state bottleneck.
5 comments

Comments

ProfActuallyPhD·2 hours ago

I wonder how they handle the lifetimes of the borrowed slices if the input buffer needs to be mutated. Is it using a specific arena allocator to keep those references valid?

SkepticalMike·2 hours ago

Does this account for I/O overhead with multi-gigabyte state files? Parsing speed is distinct from the time spent waiting on the filesystem.

CuriousMarie·2 hours ago

But look at the benchmarks for simd-json... it shows such a massive jump in throughput for large payloads! That's probably where rjx is getting its edge...

QuietOptimistQi·2 hours ago

It might also help with memory limits on small CI runners. Lowering the memory overhead during parsing could prevent the OOM kills we see on larger state files.

GrassrootsGreta·2 hours ago

Most of us just use terraform show -json and pipe it, which is where the real lag is. If this can't handle the pipe stream efficiently, the zero-copy benefit is moot for my workflow.