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
cgi/escape Optimize CGI.escapeHTML by reducing buffer extension 2019-06-05 21:07:04 +09:00
continuation
coverage
date date: support for Reiwa, new Japanese era 2019-04-09 01:27:36 +00:00
dbm
digest
etc
fcntl
fiber
fiddle
gdbm
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
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
sdbm
socket Suppress paranoid warnings for external/3rd-party libraries 2019-05-23 17:36:26 +09:00
stringio
strscan
syslog
win32
win32ole
zlib
.document
extmk.rb
Setup
Setup.atheos
Setup.nt