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
..
2021-05-11 11:29:41 +09:00
2020-12-27 15:26:24 +09:00
2021-03-26 12:37:37 +09:00
2021-06-25 17:42:45 +09:00
2021-05-10 16:08:30 +09:00
2021-04-15 15:36:15 +09:00
2020-12-27 15:27:46 +09:00
2021-06-15 12:04:05 +09:00
2021-04-21 20:45:23 +09:00
2021-04-21 20:44:55 +09:00
2021-06-21 22:12:14 +09:00
2021-05-11 11:29:41 +09:00
2021-05-10 16:08:29 +09:00