rouge-ruby / rouge

A pure Ruby code highlighter that is compatible with Pygments
https://rouge.jneen.net/
Other
3.32k stars 731 forks source link

Stop checking encoding names #1806

Closed casperisfine closed 2 years ago

casperisfine commented 2 years ago

Comparing the names is much less efficient than comparing the instance directly.

It may also change in the future: https://bugs.ruby-lang.org/issues/18576

tancnle commented 2 years ago

Thank you for your contribution @casperisfine ❤️ The PR looks great to me 👍🏼 🚀