1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/uri
normal f83116e620 lib/uri/rfc2396_parser.rb (initialize): reduce bytecode size
Reduce the initialize method from 2088 to 1332 bytes on 32-bit x86
Measurement obtained using `memsize_of_all', as `memsize_of'
is non-recursive:

  a = ObjectSpace.memsize_of_all(RubyVM::InstructionSequence)
  RubyVM::InstructionSequence.compile(src)
  b = ObjectSpace.memsize_of_all(RubyVM::InstructionSequence)
  p(b - a)

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-06 01:14:15 +00:00
..
common.rb * lib/drb/acl.rb: Removed meaningless #to_s methods in interpolation. 2014-08-27 12:21:41 +00:00
ftp.rb
generic.rb * lib/uri/rfc3986_parser.rb (URI::RFC3986_Parser::RFC3986_URI): 2014-11-03 00:33:47 +00:00
http.rb * lib/uri/http.rb (URI::HTTP#request_uri): optimized. 2014-08-05 19:09:01 +00:00
https.rb
ldap.rb
ldaps.rb
mailto.rb
rfc2396_parser.rb lib/uri/rfc2396_parser.rb (initialize): reduce bytecode size 2014-11-06 01:14:15 +00:00
rfc3986_parser.rb * lib/uri/rfc3986_parser.rb (URI::RFC3986_Parser::RFC3986_URI): 2014-11-03 00:33:47 +00:00