Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Optimize CGI.escapeHTML for ASCII-compatible encodings #1164
As commented in #156 (comment), I rewrote
With this benchmark https://gist.github.com/k0kubun/b6af6062bc876190e280, it's about 7 times faster than original implementation in escaping html.
This was referenced
Dec 21, 2015
You can check performance gain with this benchmark https://gist.github.com/k0kubun/8e1c7efb1e29991e1382.
This is the result of ruby compiled from latest revision b58b970.