1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/openssl
normal df4e282eeb delay `exception: false' checks for minor speedup
Delay hash lookups until we are about to hit an exception.  This
gives a minor speedup ratio of 2-3% in the new bm_io_nonblock_noex
benchmark as well as reducing code.

* benchmark/bm_io_nonblock_noex.rb: new benchmark
* ext/openssl/ossl_ssl.c (no_exception_p): new function
  (ossl_start_ssl): adjust for no_exception_p
  (ossl_ssl_connect): adjust ossl_start_ssl call
  (ossl_ssl_connect_nonblock): ditto
  (ossl_ssl_accept): ditto
  (ossl_ssl_accept_nonblock): ditto
  (ossl_ssl_read_internal): adjust for no_exception_p
  (ossl_ssl_write_internal): ditto
  (ossl_ssl_write): adjust ossl_write_internal call
  (ossl_ssl_write_nonblock): ditto
* ext/stringio/stringio.c (strio_read_nonblock):
  delay exception check
* io.c (no_exception_p): new function
  (io_getpartial): call no_exception_p
  (io_readpartial): adjust for io_getpartial
  (get_kwargs_exception): remove
  (io_read_nonblock): adjust for io_getpartial,
  check no_exception_p on EOF
  (io_write_nonblock): call no_exception_p
  (rb_io_write_nonblock): do not check `exception: false'
  (argf_getpartial): adjust for io_getpartial
  [ruby-core:69778] [Feature #11318]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-07-02 22:22:14 +00:00
..
lib ext/openssl/lib/openssl/ssl.rb: use io/nonblock instead of fcntl 2015-06-04 01:09:09 +00:00
depend Update dependencies. 2014-12-19 13:34:54 +00:00
deprecation.rb * ext/openssl/deprecation.rb (OpenSSL.check_func): check if header is 2012-05-01 05:18:02 +00:00
extconf.rb * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
openssl_missing.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
openssl_missing.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_asn1.c openssl: use RB_GC_GUARD instead of volatile 2015-05-27 01:09:11 +00:00
ossl_asn1.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_bio.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_bio.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_bn.c openssl: wrapper object before alloc 2015-05-29 05:55:02 +00:00
ossl_bn.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_cipher.c openssl: wrapper object before alloc 2015-05-29 05:55:02 +00:00
ossl_cipher.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_config.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_config.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_digest.c openssl: wrapper object before alloc 2015-05-29 05:55:02 +00:00
ossl_digest.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_engine.c openssl: wrapper object before alloc 2015-05-29 05:55:02 +00:00
ossl_engine.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_hmac.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_hmac.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_ns_spki.c openssl: wrapper object before alloc 2015-05-29 05:55:02 +00:00
ossl_ns_spki.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_ocsp.c * ext/openssl/ossl_ocsp.c: fix documentation on ocsp response cert status. 2015-06-13 02:38:46 +00:00
ossl_ocsp.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_pkcs5.c protoize no-arguments functions 2014-09-30 05:25:32 +00:00
ossl_pkcs5.h
ossl_pkcs7.c openssl: wrapper object before alloc 2015-05-29 05:55:02 +00:00
ossl_pkcs7.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_pkcs12.c openssl: wrapper object before alloc 2015-05-29 05:55:02 +00:00
ossl_pkcs12.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_pkey.c openssl: wrapper object before alloc 2015-05-29 05:55:02 +00:00
ossl_pkey.h openssl: wrapper object before alloc 2015-05-29 05:55:02 +00:00
ossl_pkey_dh.c openssl: wrapper object before alloc 2015-05-29 05:55:02 +00:00
ossl_pkey_dsa.c openssl: wrapper object before alloc 2015-05-29 05:55:02 +00:00
ossl_pkey_ec.c openssl: wrapper object before alloc 2015-05-29 05:55:02 +00:00
ossl_pkey_rsa.c openssl: wrapper object before alloc 2015-05-29 05:55:02 +00:00
ossl_rand.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_rand.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_ssl.c delay `exception: false' checks for minor speedup 2015-07-02 22:22:14 +00:00
ossl_ssl.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_ssl_session.c * ext/openssl/ossl.h: avoid to build failure of Windows environment. 2015-01-03 02:50:31 +00:00
ossl_version.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_x509.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_x509.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_x509attr.c openssl: wrapper object before alloc 2015-05-29 05:55:02 +00:00
ossl_x509cert.c openssl: wrapper object before alloc 2015-05-29 05:55:02 +00:00
ossl_x509crl.c openssl: wrapper object before alloc 2015-05-29 05:55:02 +00:00
ossl_x509ext.c openssl: wrapper object before alloc 2015-05-29 05:55:02 +00:00
ossl_x509name.c openssl: wrapper object before alloc 2015-05-29 05:55:02 +00:00
ossl_x509req.c openssl: wrapper object before alloc 2015-05-29 05:55:02 +00:00
ossl_x509revoked.c openssl: wrapper object before alloc 2015-05-29 05:55:02 +00:00
ossl_x509store.c openssl: wrapper object before alloc 2015-05-29 05:55:02 +00:00
ruby_missing.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00