[ruby-cvs:55442] normal:r48292 (trunk): lib/uri/rfc2396_parser.rb (initialize): reduce bytecode size
normal at ruby-lang.org
normal at ruby-lang.org
Thu Nov 6 10:14:17 JST 2014
normal 2014-11-06 10:14:15 +0900 (Thu, 06 Nov 2014)
New Revision: 48292
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48292
Log:
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)
Modified files:
trunk/ChangeLog
trunk/lib/uri/rfc2396_parser.rb
More information about the ruby-cvs
mailing list