ronin-rb / ronin-support

A support library for Ronin. Like activesupport, but for hacking!
https://ronin-rb.dev
GNU Lesser General Public License v3.0
27 stars 10 forks source link

Refactor code that uses `String#scan` to use `StringScanner` to improve performance #520

Open postmodern opened 4 months ago

postmodern commented 4 months ago

StringScanner using a while or until loop is rough 2x faster than String#scan with a block. We should refactor the remaining code that still uses String#scan to use StringScanner.