Sharon Rosner fa54a9c9e5 [ruby/erb] html_escape: Avoid buffer allocation for strings with no
escapable character
(https://github.com/ruby/erb/pull/87)

This change improves reduces allocations and makes `html_escape` ~35% faster in
a benchmark with escaped strings taken from the `test_html_escape` test in
`test/test_erb.rb`.

- Perform buffer allocation on first instance of escapable character.
- Instead of copying characters one at a time, copy unescaped segments using
  `memcpy`.

https://github.com/ruby/erb/commit/aa482890fe
2025-10-11 22:36:21 +00:00
..
2025-10-09 20:35:02 -04:00
2025-07-15 07:24:28 +00:00
2025-09-10 05:37:21 +00:00
2025-07-17 11:16:30 +09:00
2025-10-07 08:33:08 +00:00
2025-09-13 17:10:44 +09:00
2025-09-15 13:05:17 +09:00