| Age | Commit message (Collapse) | Author |
|
https://github.com/ruby/prism/commit/ca9a660f52
|
|
https://github.com/ruby/prism/commit/085da4feb9
|
|
https://github.com/ruby/prism/commit/3abd09c803
|
|
https://github.com/ruby/prism/commit/8062849d0d
|
|
https://github.com/ruby/prism/commit/6e5556dbdf
|
|
|
|
The existing comment generation was hard to read and was making a lot of string manipulation. However, ERB files are already designed to do string manipulation, so we can use that instead.
So, instead of doing a split and a map, I opted to use the `#each_line` method to iterate over the lines of the file.
Also, in order to add an optional space padding at the beginning of the line, I opted to pad it with a space and to then right trim it. This makes sure that no space is left behind if the line is empty, but a space is added if the line is not empty.
https://github.com/ruby/prism/commit/5736711e70
|
|
https://github.com/ruby/prism/commit/5b72f84480
|
|
https://github.com/ruby/prism/commit/3193902c43
|
|
https://github.com/ruby/prism/commit/568fb39e2c
|
|
https://github.com/ruby/prism/commit/b62305ff3e
Co-authored-by: Stan Lo <st0012@users.noreply.github.com>
|
|
https://github.com/ruby/prism/commit/160df9a687
|
|
https://github.com/ruby/prism/commit/6d8358c083
|
|
https://github.com/ruby/prism/commit/7c9cf63d4c
|
|
* Otherwise load_node is too big to compile and is forced to run in interpreter:
https://github.com/oracle/truffleruby/issues/3293#issuecomment-1759730996
* For the benchmark at https://github.com/oracle/truffleruby/issues/3293#issuecomment-1759790280
TruffleRuby Native 23.1.0:
Before: 10.574041 After: 5.592436
JRuby 9.4.3.0:
Before: 7.037780 After: 3.995317
JRuby 9.4.3.0 -Xcompile.invokedynamic=true:
Before: 7.047832 After: 2.269294
https://github.com/ruby/prism/commit/a592ec346a
|
|
https://github.com/ruby/prism/commit/73c44b0b9c
|
|
https://github.com/ruby/prism/commit/6f4fab362e
|
|
https://github.com/ruby/prism/commit/d906a8ceba
|
|
https://github.com/ruby/prism/commit/ee429f8d50
|
|
https://github.com/ruby/prism/commit/1985a9ba51
|
|
https://github.com/ruby/prism/commit/d469a56e7e
|
|
https://github.com/ruby/prism/commit/c7ef25a79a
|
|
https://github.com/ruby/prism/commit/ec66feb595
|
|
https://github.com/ruby/prism/commit/1731bf4520
|
|
Moves the common flag bits to the top. This lets us eliminate the `COMMON`
constant, and also allows us to group encoding flags on a nibble so we
can more easily mask them.
https://github.com/ruby/prism/commit/895508659e
|
|
https://github.com/ruby/prism/commit/c82a9dad64
|
|
https://github.com/ruby/prism/commit/ca4943e3f9
|
|
https://github.com/ruby/prism/commit/630af5cb0e
|
|
* https://github.com/ruby/prism/pull/1533
|
|
https://github.com/ruby/prism/commit/3e44415ca2
|
|
https://github.com/ruby/prism/commit/0c7d9c3c01
|
|
https://github.com/ruby/prism/commit/6f243de0c7
|
|
|
|
|