rune-rs / rune

An embeddable dynamic programming language for Rust.
https://rune-rs.github.io
Apache License 2.0
1.7k stars 85 forks source link

Improve pattern matching performance #736

Closed udoprog closed 1 month ago

udoprog commented 1 month ago

This roughly halves the number of instructions used when pattern matching by making the else jump as part of the comparison instructions.