1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext
Takashi Kokubun 0a29dc87e6
Optimize CGI.escapeHTML by reducing buffer extension
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 <nobu@ruby-lang.org>
Co-authored-by: Yasuhiro MATSUMOTO <mattn.jp@gmail.com>
2019-06-05 21:07:04 +09:00
..
-test- Update dependencies 2019-05-13 23:53:46 +09:00
bigdecimal Import bigdecimal 1.4.2 2018-12-26 08:17:30 +00:00
cgi/escape Optimize CGI.escapeHTML by reducing buffer extension 2019-06-05 21:07:04 +09:00
continuation
coverage Removed moving toplevel header since r12501 2019-02-08 02:46:22 +00:00
date date: support for Reiwa, new Japanese era 2019-04-09 01:27:36 +00:00
dbm Removed moving toplevel header since r12501 2019-02-08 02:46:22 +00:00
digest Prefer relative directory from srcdir to top_srcdir 2019-02-14 05:42:14 +00:00
etc Removed moving toplevel header since r12501 2019-02-08 02:46:22 +00:00
fcntl Removed moving toplevel header since r12501 2019-02-08 02:46:22 +00:00
fiber
fiddle Removed moving toplevel header since r12501 2019-02-08 02:46:22 +00:00
gdbm Removed moving toplevel header since r12501 2019-02-08 02:46:22 +00:00
io Fix the warning in 456586bb23 2019-05-15 18:19:23 +09:00
json Add NaN / Infinity / MinusInfinity to mark list 2019-05-13 14:27:54 -07:00
nkf Revert "* expand tabs." 2018-12-15 14:45:36 +00:00
objspace * expand tabs. 2019-04-23 12:34:10 +09:00
openssl ext/openssl/ossl_bn.c (ossl_bn_initialize): get rid of SEGV 2019-04-10 12:57:39 +00:00
pathname Try statx syscall 2019-02-20 06:54:23 +00:00
psych Make psych.so deterministic 2019-06-02 07:59:56 +03:00
pty Fix PTY.open on OpenBSD [Bug #15607] 2019-03-06 09:48:39 +00:00
racc/cparse Update the canonical repository for racc. 2019-05-13 21:26:13 +09:00
rbconfig/sizeof
readline Update the canonical repository url. 2019-05-07 23:16:26 +09:00
ripper Include stack elements left after errors 2019-05-30 21:54:38 +09:00
rubyvm Disable tailcall optimization [Bug #15303] 2018-12-12 05:46:13 +00:00
sdbm Removed moving toplevel header since r12501 2019-02-08 02:46:22 +00:00
socket Suppress paranoid warnings for external/3rd-party libraries 2019-05-23 17:36:26 +09:00
stringio Removed moving toplevel header since r12501 2019-02-08 02:46:22 +00:00
strscan
syslog
win32
win32ole
zlib Removed moving toplevel header since r12501 2019-02-08 02:46:22 +00:00
.document
extmk.rb
Setup
Setup.atheos
Setup.nt