Age | Commit message (Collapse) | Author |
|
https://github.com/ruby/rdoc/commit/3d3616cb94
|
|
|
|
|
|
Not to interfer in class variables.
|
|
https://github.com/ruby/irb/commit/bcd96834c7
|
|
https://github.com/ruby/reline/commit/723c6e191a
|
|
You can use "measure" command to check performance in IRB like below:
irb(main):001:0> 3
=> 3
irb(main):002:0> measure
TIME is added.
=> nil
irb(main):003:0> 3
processing time: 0.000058s
=> 3
irb(main):004:0> measure :off
=> nil
irb(main):005:0> 3
=> 3
You can set "measure :on" by "IRB.conf[:MEASURE] = true" in .irbrc, and, also,
set custom performance check method:
IRB.conf[:MEASURE_PROC][:CUSTOM] = proc { |context, code, line_no, &block|
time = Time.now
result = block.()
now = Time.now
puts 'custom processing time: %fs' % (Time.now - time) if IRB.conf[:MEASURE]
result
}
https://github.com/ruby/irb/commit/3899eaf2e2
|
|
https://github.com/ruby/irb/commit/f3c8edad2a
|
|
* ruby:ext/rbconfig/exts.mk
* ruby:ext/rbconfig/sizeof/Makefile
* ruby:ext/rbconfig/sizeof/depend
* ruby:ext/rbconfig/sizeof/mkmf.log
* ruby:ext/win32/depend
* ruby:ext/win32/exts.mk
* ruby:ext/win32/resolv/depend
* ruby:lib/racc/pre-setup
|
|
[ruby/fileutils] Make verbose output go to stdout instead of stderr
This reverts commit 510df47f5f7f83918d3aa00316c8a5b959d80d7c.
|
|
https://github.com/ruby/reline/commit/cfe619460b
|
|
This closes ruby/reline#106.
https://github.com/ruby/reline/commit/2549a52e15
|
|
https://github.com/ruby/reline/commit/3c74beac65
|
|
https://github.com/ruby/reline/commit/d208874152
|
|
https://github.com/ruby/irb/commit/babb122a48
https://github.com/ruby/reline/commit/e6dbcb3b42
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3930
|
|
This new mode uses a copy of the TOPLEVEL_BINDING. This is compatible with refinements (contrary to mode 3), while keeping nested IRB sessions separate
https://github.com/ruby/irb/commit/25c731cb2f
|
|
Requested in Ruby Bug 17377
https://github.com/ruby/irb/commit/698f6eb34a
|
|
https://github.com/ruby/irb/commit/ce373417f3
|
|
* Fixes #38
https://github.com/ruby/irb/commit/905fb8e52e
|
|
https://github.com/ruby/reline/commit/ca274b0d37
|
|
https://github.com/ruby/reline/commit/2a97ca9362
|
|
https://github.com/ruby/reline/commit/dff30a2d44
|
|
https://github.com/ruby/reline/commit/e83a3de9ed
|
|
See https://github.com/ruby/irb/issues/85 for details
Notes:
Merged: https://github.com/ruby/ruby/pull/3806
|
|
s/it's/its
Notes:
Merged: https://github.com/ruby/ruby/pull/3920
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3901
|
|
https://github.com/ruby/reline/commit/f21dfdbb11
|
|
Fixes https://github.com/ruby/ruby/pull/3883
|
|
|
|
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3729
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3729
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3729
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3729
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3869
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3869
|
|
|
|
|
|
Miller Rabin algorithm can be used to test primality for integers smaller than a max value "MaxMR" (~3e24)
It can be much faster than previous implementation: ~100x faster for numbers with 13 digits, at least 5 orders of magnitude for even larger numbers (previous implementation is so slow that it requires more patience than I have for more precise estimate).
Miller Rabin test becomes faster than previous implementation at somewhere in the range 1e5-1e6. It seems that the range 62000..66000 is where Miller Rabin starts being always faster, so I picked 0xffff arbitrarily; before that, or above "MaxMR", the previous implementation remains.
I compared the `faster_prime` gem too. It is slower than previous implementation up to ~1e4. After that it becomes faster and faster compared to previous implementation, but is still slower than Miller Rabin starting at ~1e5 and up to MaxMR. Thus, after this commit, builtin `Integer#prime?` will be similar or faster than `faster_prime` up to "MaxMR".
Adapted from patch of Stephen Blackstone [Feature #16468]
Benchmark results and code: https://gist.github.com/marcandre/b263bdae488e76dabdda84daf73733b9
Co-authored-by: Stephen Blackstone <[email protected]>
Notes:
Merged: https://github.com/ruby/ruby/pull/3847
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3864
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3864
|
|
https://github.com/ruby/reline/commit/0a4f175b0a
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3854
|
|
Avoiding recursive call would imply iterating bits starting from
most significant, which is not easy to do efficiently.
Any saving would be dwarfed by the multiplications anyways.
[Feature #15233]
Notes:
Merged: https://github.com/ruby/ruby/pull/3844
|
|
When running irb 1.2.1 (2019-12-24) with frozen-string-literal enabled, it crashes in reline with `can't modify frozen String (FrozenError)`
Steps to reproduce:
`RUBYOPT="--enable-frozen-string-literal" irb`
|
|
https://github.com/ruby/reline/commit/89d49ec9e0
|
|
https://github.com/ruby/reline/commit/d1a6869322
|
|
https://github.com/ruby/reline/commit/0e30a49d03
|
|
https://github.com/ruby/reline/commit/1959e22043
|