1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib
Takashi Kokubun 35c7e83bb3 [ruby/irb] Optimize show_source command further
https://github.com/ruby/irb/pull/249 actually slowed down how `code` is
concatenated. The original way of creating `code` is faster.

[before]
    user     system      total        real
2.420137   0.005364   2.425501 (  2.426264)

[after]
    user     system      total        real
1.000221   0.007454   1.007675 (  1.008295)

Theoretically, this implementation might skip lines that don't appear in
Ripper tokens, but this assumes such lines don't impact whether the code
passes compilation or not. At least normal blank lines seem to have an
`on_ignored_nl` token anyway though.

https://github.com/ruby/irb/commit/27dd2867cd
2021-06-27 10:52:49 +09:00
..
benchmark [ruby/benchmark] gemspec: Explicitly have 0 executables 2021-04-22 11:51:37 +09:00
bundler Sync bundler & rubygems 2021-05-11 11:29:41 +09:00
cgi [ruby/cgi] gemspec: Explicitly empty executables list 2021-04-22 11:51:37 +09:00
csv
delegate
did_you_mean
drb
erb [ruby/erb] Version 2.2.3 2021-03-26 12:37:37 +09:00
forwardable [ruby/forwardable] gemspec: Explicitly empty the executables list 2021-04-21 20:41:52 +09:00
getoptlong
irb [ruby/irb] Optimize show_source command further 2021-06-27 10:52:49 +09:00
logger
net [ruby/net-protocol] Get rid of __send__ 2021-06-16 22:23:46 +09:00
observer
optparse [ruby/optparse] Moved rdoc files to doc/optparse 2021-04-11 09:03:36 +09:00
ostruct
pstore
racc Followed up 66d2fc7989 2021-06-25 17:27:17 +09:00
rdoc [ruby/rdoc] Specify working directory for RDoc::Options#check_files 2021-06-23 11:05:16 +09:00
reline [ruby/reline] Fix missing require. 2021-06-25 17:42:45 +09:00
rinda
rubygems [rubygems/rubygems] Copy files specific to testing rubygems to test 2021-05-28 11:52:57 +09:00
set [ruby/set] set is also dual licenses 2021-05-10 16:08:30 +09:00
singleton
timeout
unicode_normalize
uri [ruby/uri] Use Regexp#match? to avoid extra allocations 2021-04-22 14:55:44 +09:00
weakref
yaml Workaround with fbb4e3f96c in yaml/store.rb 2021-05-17 12:57:41 +09:00
.document
abbrev.gemspec [ruby/abbrev] gemspec: Explicitly empty executables list 2021-04-21 20:39:04 +09:00
abbrev.rb
base64.gemspec [ruby/base64] gemspec: Use an explicit file list 2021-04-21 20:41:26 +09:00
base64.rb
benchmark.rb [ruby/benchmark] Add comment about terminating newline in captions; fix test method name. 2021-04-22 11:51:37 +09:00
bundler.rb Merge the master branch of Bundler 2021-04-15 15:36:15 +09:00
cgi.rb
csv.rb
debug.gemspec
debug.rb
delegate.rb
did_you_mean.rb
drb.rb
English.gemspec
English.rb
erb.gemspec [ruby/erb] Clarify supported ruby versions in gemspec 2021-03-26 12:35:52 +09:00
erb.rb [ruby/erb] Document that <% # doesn't work 2021-05-05 23:13:27 -07:00
fileutils.gemspec
fileutils.rb
find.gemspec
find.rb
forwardable.rb
getoptlong.rb
ipaddr.gemspec
ipaddr.rb
irb.rb [ruby/irb] Fix Encoding::ConverterNotFoundError 2021-05-11 16:17:17 +09:00
logger.rb [ruby/logger] Replace "iff" with "if and only if" 2021-04-20 21:19:41 +09:00
mkmf.rb Remove also debug symbol directory at clean on macOS 2021-06-24 17:04:42 +09:00
mutex_m.gemspec
mutex_m.rb
observer.rb
open-uri.gemspec
open-uri.rb Guard for the ftp protocol feature of OpenURI 2021-05-27 14:42:11 +09:00
open3.gemspec
open3.rb
optionparser.rb
optparse.rb [ruby/optparse] Moved rdoc files to doc/optparse 2021-04-11 09:03:36 +09:00
ostruct.rb [ruby/ostruct] v0.4.0 2021-06-15 12:04:05 +09:00
pp.gemspec [ruby/pp] Bump version to 0.2.0 2021-04-21 20:45:23 +09:00
pp.rb [ruby/pp] Support < Ruby 3.0 2021-04-21 20:44:55 +09:00
prettyprint.gemspec
prettyprint.rb
pstore.rb
racc.rb
rdoc.rb
readline.gemspec
readline.rb
reline.rb Rescue conversion error of inputrc 2021-06-21 22:12:14 +09:00
resolv-replace.gemspec
resolv-replace.rb
resolv.gemspec [ruby/resolv] gemspec: Explicitly list 0 executables 2021-04-21 20:43:18 +09:00
resolv.rb [ruby/resolv] Fix confusion of received response message 2021-05-11 12:37:34 +09:00
ruby2_keywords.gemspec
rubygems.rb Sync bundler & rubygems 2021-05-11 11:29:41 +09:00
securerandom.gemspec
securerandom.rb
set.rb [ruby/set] Adding section: What's Here 2021-05-10 16:08:29 +09:00
shellwords.gemspec
shellwords.rb
singleton.rb
tempfile.gemspec
tempfile.rb
time.gemspec
time.rb Revert "disable shareable_constant_value for CI" 2021-04-26 22:46:51 +09:00
timeout.rb [ruby/timeout] Only run timeout_after hook on fiber scheduler if scheduler exists 2021-05-06 16:51:10 +09:00
tmpdir.gemspec [ruby/tmpdir] Bump version to 0.1.2 2021-04-05 21:08:58 +09:00
tmpdir.rb [ruby/tmpdir] Make usable chars more strict 2021-04-05 21:08:57 +09:00
tsort.gemspec
tsort.rb
un.gemspec
un.rb
uri.rb [ruby/uri] remove comment about URI::escape as it is removed 2021-04-22 14:55:05 +09:00
weakref.rb
yaml.rb