mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
35c7e83bb3
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 |
||
---|---|---|
.. | ||
cmd | ||
ext | ||
lc | ||
.document | ||
color.rb | ||
color_printer.rb | ||
completion.rb | ||
context.rb | ||
easter-egg.rb | ||
extend-command.rb | ||
frame.rb | ||
help.rb | ||
init.rb | ||
input-method.rb | ||
inspector.rb | ||
irb.gemspec | ||
locale.rb | ||
magic-file.rb | ||
notifier.rb | ||
output-method.rb | ||
ruby-lex.rb | ||
ruby_logo.aa | ||
src_encoding.rb | ||
version.rb | ||
workspace.rb | ||
ws-for-case-2.rb | ||
xmp.rb |