1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib
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
..
cgi * lib/cgi/session/pstore.rb: separated sample code. 2014-08-10 01:34:50 +00:00
drb * lib/drb/drb.rb: Support graceful shutdown. 2014-09-21 17:06:05 +00:00
irb * lib/drb/drb.rb: use attr_reader instead of Module#attr. 2014-08-27 12:10:21 +00:00
matrix * lib/matrix/eigenvalue_decomposition: Style fix 2014-07-18 10:11:18 +00:00
net Document that Net::IMAP#fetch will return nil instead of an emtpy array. 2014-10-31 07:36:31 +00:00
optparse * lib/cgi/core.rb: remove unused variables. 2014-07-27 11:04:28 +00:00
racc * lib/cgi/core.rb: remove unused variables. 2014-07-27 11:04:28 +00:00
rake cpu_counter.rb: separate implementations 2014-11-05 05:19:15 +00:00
rbconfig * tool/mkconfig.rb: remove not to require rbconfig/obsolete.rb. 2014-07-07 02:07:01 +00:00
rdoc * ext/dl/*: remove DL as it is replaced by Fiddle. 2014-10-31 21:13:09 +00:00
rexml * lib/rexml/entity.rb: keep the entity size within the limitation. 2014-10-27 11:18:02 +00:00
rinda * lib/rinda/ring.rb: split executable code into sample directory. 2014-08-21 04:23:56 +00:00
rss Restore date field. 2014-06-14 13:52:04 +00:00
rubygems * lib/rubygems: Update to RubyGems 2.4.2. 2014-10-01 08:30:21 +00:00
shell * lib/shell/process-controller.rb: removed commented-out code. 2014-08-26 02:44:26 +00:00
unicode_normalize lib/unicode_normalize/normalize.rb: Comment clarification. [ci skip] 2014-11-05 23:49:55 +00:00
uri lib/uri/rfc2396_parser.rb (initialize): reduce bytecode size 2014-11-06 01:14:15 +00:00
webrick * lib/webrick/server.rb: Stop lisntner loop properly. 2014-11-05 10:24:53 +00:00
xmlrpc * lib/xmlrpc/parser.rb: added new parser class using libxml-ruby gem. 2014-10-13 08:53:16 +00:00
yaml
abbrev.rb * lib/abbrev.rb: remove executable. 2014-07-11 08:16:05 +00:00
base64.rb
benchmark.rb lib/benchmark.rb: remove CLOCK_MONOTONIC_RAW support 2014-09-11 08:09:07 +00:00
cgi.rb * lib/cgi.rb: remove needless condition for old ruby version. 2014-08-07 06:14:29 +00:00
cmath.rb * lib/cmath.rb: fixed indent. 2014-08-09 01:36:49 +00:00
csv.rb * remove trailing spaces. 2014-11-04 03:21:53 +00:00
debug.rb
delegate.rb * lib/delegate.rb: split executable code into sample directory. 2014-07-26 17:11:56 +00:00
drb.rb
e2mmap.rb * lib/e2mmap.rb: remove needless instance variables. 2014-08-24 07:16:25 +00:00
English.rb * lib/English.rb: [DOC] $LOADED_FEATURES moved to load.c [Fixes GH-620] 2014-05-31 19:54:55 +00:00
erb.rb * lib/drb/acl.rb: Removed meaningless #to_s methods in interpolation. 2014-08-27 12:21:41 +00:00
fileutils.rb * lib/fileutils.rb: enable to remove with non-owner directory. 2014-08-12 04:36:31 +00:00
find.rb * lib/find.rb (Find.find): Call to_path for arguments to obtain 2014-10-13 07:34:23 +00:00
forwardable.rb
getoptlong.rb
ipaddr.rb * lib/ipaddr.rb: extracted inline tests into test dir. 2014-05-31 07:36:51 +00:00
irb.rb * lib/e2mmap.rb: remove needless instance variables. 2014-08-24 07:16:25 +00:00
logger.rb logger.rb: simplify 2014-08-25 04:03:33 +00:00
mathn.rb lib/mathn.rb: remove built-in methods 2014-08-26 12:07:57 +00:00
matrix.rb * lib/matrix.rb: Generalize Vector#cross_product to arbitrary dimensions 2014-10-29 02:43:52 +00:00
mkmf.rb * lib/mkmf.rb: no need to convert path separator for COPY because it's 2014-10-20 14:21:18 +00:00
monitor.rb
mutex_m.rb
observer.rb * lib/drb/acl.rb: Removed meaningless #to_s methods in interpolation. 2014-08-27 12:21:41 +00:00
open-uri.rb open-uri: accept :open_timeout option 2014-10-10 19:15:56 +00:00
open3.rb * lib/open3.rb: fix code formatting in documentation by @JoshCheek 2014-11-04 03:09:28 +00:00
optionparser.rb lib/optionparser.rb 2014-05-26 03:25:38 +00:00
optparse.rb optparse.rb: getopts message improvement 2014-07-21 06:55:44 +00:00
ostruct.rb
pp.rb
prettyprint.rb * lib/prettyprint.rb: removed PrettyPrint#first? 2014-08-22 02:38:59 +00:00
prime.rb * lib/cgi/core.rb: remove unused variables. 2014-07-27 11:04:28 +00:00
profile.rb
profiler.rb
pstore.rb * lib/pstore.rb: split executable code into sample directory. 2014-07-23 19:31:18 +00:00
rake.rb * lib/rake.rb, lib/rake/*.rb: Upgrade to rake-10.3.2 2014-07-15 03:07:37 +00:00
rdoc.rb * lib/rdoc.rb, lib/rdoc, test/rdoc: Update to RDoc 4.2.0.alpha(313287) 2014-09-05 01:41:25 +00:00
resolv-replace.rb
resolv.rb normalize reference to Timeout::Error 2014-10-07 20:00:09 +00:00
rss.rb
rubygems.rb * lib/rubygems: Update to RubyGems 2.4.2. 2014-10-01 08:30:21 +00:00
scanf.rb
securerandom.rb * lib/securerandom.rb (SecureRandom.random_bytes): use fiddle directly 2014-11-04 12:20:59 +00:00
set.rb * lib/set.rb (Set#replace): Check if an object given is enumerable 2014-08-06 11:28:21 +00:00
shell.rb * lib/e2mmap.rb: remove needless instance variables. 2014-08-24 07:16:25 +00:00
shellwords.rb * lib/shellwords.rb: proofreading documentation. 2014-09-05 10:00:46 +00:00
singleton.rb
sync.rb
tempfile.rb tempfile.rb: fix r47655 2014-09-21 01:40:21 +00:00
thwait.rb * lib/drb/drb.rb: use attr_reader instead of Module#attr. 2014-08-27 12:10:21 +00:00
time.rb * time.c: [DOC] Clarify %Y in strftime, which can accept any digits 2014-07-27 20:58:05 +00:00
timeout.rb
tmpdir.rb tmpdir.rb: explicit conversion to string 2014-09-22 04:44:19 +00:00
tracer.rb
tsort.rb
ubygems.rb
un.rb
unicode_normalize.rb lib/unicode_normalize.rb: removing unnecessary 'self'. 2014-10-20 03:46:50 +00:00
uri.rb bump URI::VERSION to 0.10.0 2014-11-03 00:33:44 +00:00
weakref.rb * lib/weakref.rb: split executable code into sample directory. 2014-07-26 17:12:11 +00:00
webrick.rb
xmlrpc.rb
yaml.rb Revert "Revert "* lib/yaml.rb: Remove Psych::EngineManager [Bug #8344]"" 2014-06-26 02:52:46 +00:00