<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/benchmark/cgi_escape_html.yml, branch v4.0.3</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>Improve HTML escape benchmarks</title>
<updated>2022-11-05T06:54:25+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2022-11-05T06:24:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f276d5a7fe28ae4fd2934af4befd920bb78cfa9e'/>
<id>f276d5a7fe28ae4fd2934af4befd920bb78cfa9e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Optimize CGI.escapeHTML by reducing buffer extension</title>
<updated>2019-06-05T12:07:04+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2019-06-05T10:28:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0a29dc87e62c701db56816cb430daf07a4f02bea'/>
<id>0a29dc87e62c701db56816cb430daf07a4f02bea</id>
<content type='text'>
and switch-case branches.

Buffer allocation optimization using `ALLOCA_N` would be the main
benefit of patch. It eliminates the O(N) buffer extensions.

It also reduces the number of branches using escape table like
https://mattn.kaoriya.net/software/lang/c/20160817011915.htm.

Closes: https://github.com/ruby/ruby/pull/2226

Co-authored-by: Nobuyoshi Nakada &lt;nobu@ruby-lang.org&gt;
Co-authored-by: Yasuhiro MATSUMOTO &lt;mattn.jp@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
and switch-case branches.

Buffer allocation optimization using `ALLOCA_N` would be the main
benefit of patch. It eliminates the O(N) buffer extensions.

It also reduces the number of branches using escape table like
https://mattn.kaoriya.net/software/lang/c/20160817011915.htm.

Closes: https://github.com/ruby/ruby/pull/2226

Co-authored-by: Nobuyoshi Nakada &lt;nobu@ruby-lang.org&gt;
Co-authored-by: Yasuhiro MATSUMOTO &lt;mattn.jp@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Optimize CGI.escapeHTML by reducing buffer extension"</title>
<updated>2019-06-05T02:00:54+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2019-06-05T02:00:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=71b14affc6b699f38aabe73125380cab57799e34'/>
<id>71b14affc6b699f38aabe73125380cab57799e34</id>
<content type='text'>
This reverts commit 8d81e59aa7a62652caf85f9c8db371703668c149.

`ALLOCA_N` does not check stack overflow unlike ALLOCV. I'll fix it and
re-commit it again.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 8d81e59aa7a62652caf85f9c8db371703668c149.

`ALLOCA_N` does not check stack overflow unlike ALLOCV. I'll fix it and
re-commit it again.
</pre>
</div>
</content>
</entry>
<entry>
<title>Optimize CGI.escapeHTML by reducing buffer extension</title>
<updated>2019-06-05T01:08:55+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2019-06-04T10:58:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8d81e59aa7a62652caf85f9c8db371703668c149'/>
<id>8d81e59aa7a62652caf85f9c8db371703668c149</id>
<content type='text'>
and switch-case branches.

Buffer allocation optimization using `ALLOCA_N` would be the main
benefit of patch. It eliminates the O(N) buffer extensions.

It also reduces the number of branches using escape table like
https://mattn.kaoriya.net/software/lang/c/20160817011915.htm.

Closes: https://github.com/ruby/ruby/pull/2226

Co-authored-by: Nobuyoshi Nakada &lt;nobu@ruby-lang.org&gt;
Co-authored-by: Yasuhiro MATSUMOTO &lt;mattn.jp@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
and switch-case branches.

Buffer allocation optimization using `ALLOCA_N` would be the main
benefit of patch. It eliminates the O(N) buffer extensions.

It also reduces the number of branches using escape table like
https://mattn.kaoriya.net/software/lang/c/20160817011915.htm.

Closes: https://github.com/ruby/ruby/pull/2226

Co-authored-by: Nobuyoshi Nakada &lt;nobu@ruby-lang.org&gt;
Co-authored-by: Yasuhiro MATSUMOTO &lt;mattn.jp@gmail.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
