MiSawa / xq

Pure rust implementation of jq
MIT License
333 stars 18 forks source link

Jump shortcut optimiztion #20

Open MiSawa opened 3 years ago

MiSawa commented 3 years ago

I don't know how it's called. We do this optimization while emitting byte code, but we have (perhaps quite some) space to improve due to placeholder-and-replacement pattern.

We should probably track every jump-ish operation to the placeholder in the emitter, and optimize them later.