Project

General

Profile

Feature #10468 ยป 0001-lib-uri-rfc2396_parser.rb-initialize-reduce-bytecode.patch

normalperson (Eric Wong), 11/03/2014 02:25 AM

View differences:

ChangeLog
Mon Nov 3 11:00:15 2014 Eric Wong <e@80x24.org>
* lib/uri/rfc2396_parser.rb (initialize): reduce bytecode size
from 2088 to 1332 bytes on 32-bit x86
Mon Nov 3 09:43:30 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* vm_args.c: fixed build error with clang
lib/uri/rfc2396_parser.rb
#
def initialize(opts = {})
@pattern = initialize_pattern(opts)
@pattern.each_value {|v| v.freeze}
@pattern.each_value(&:freeze)
@pattern.freeze
@regexp = initialize_regexp(@pattern)
@regexp.each_value {|v| v.freeze}
@regexp.each_value(&:freeze)
@regexp.freeze
end
-
    (1-1/1)