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 26b3dc4922 uri/common: reduce allocations and retained objects
Thanks to Sam Saffron for this patch, it shows
a nice reduction which affects many web applications:

  require 'memory_profiler'

  MemoryProfiler.report do
    require 'uri'
  end.pretty_print

Before:

Total allocated: 986643 bytes (15159 objects)
Total retained:  246370 bytes (2532 objects)

After:

Total allocated: 926903 bytes (13665 objects)
Total retained:  208570 bytes (1587 objects)

* lib/uri/common.rb: reduce allocations and retained objects
  [ruby-core:85161] [Feature #14410]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-01-28 21:07:13 +00:00
..
common.rb uri/common: reduce allocations and retained objects 2018-01-28 21:07:13 +00:00
ftp.rb ftp.rb: fix example format [ci skip] 2017-08-15 01:05:50 +00:00
generic.rb Use string instead of regexp 2017-12-14 06:30:22 +00:00
http.rb Remove commented out code of URI::HTTP.new. 2017-09-11 06:12:40 +00:00
https.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
ldap.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
ldaps.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
mailto.rb Use URI.decode_www_form_component [Bug #10774] 2016-12-12 15:24:28 +00:00
rfc2396_parser.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
rfc3986_parser.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00