master
Commits on Oct 1, 2021
-
-
-
Define ACTION-IF-UNIVERSAL of
AC_C_BIGENDIAN
[Bug #18156]As we do not use config.h.in, just define the helper macro instead.
Commits on Sep 30, 2021
-
Make Array#min/max optimization respect refined methods
Pass in ec to vm_opt_newarray_{max,min}. Avoids having to call GET_EC inside the functions, for better performance. While here, add a test for Array#min/max being redefined to test_optimization.rb. Fixes [Bug #18180]
-
Enhanced RDoc for Enumerable (#4917)
Treats: #each_with_index #reverse_each #each_entry #each_slice #each_cons #each_with_object
-
-
Use faster any_hash logic in rb_hash
From the documentation of rb_obj_hash: > Certain core classes such as Integer use built-in hash calculations and > do not call the #hash method when used as a hash key. So if you override, say, Integer#hash it won't be used from rb_hash_aref and similar. This avoids method lookups in many common cases. This commit uses the same optimization in rb_hash, a method used internally and in the C API to get the hash value of an object. Usually this is used to build the hash of an object based on its elements. Previously it would always do a method lookup for 'hash'. This is primarily intended to speed up hashing of Arrays and Hashes, which call rb_hash for each element. compare-ruby: ruby 3.0.1p64 (2021-04-05 revision 0fb782e) [x86_64-linux] built-ruby: ruby 3.1.0dev (2021-09-29T02:13:24Z fast_hash d670bf88b2) [x86_64-linux] # Iteration per second (i/s) | |compare-ruby|built-ruby| |:----------------|-----------:|---------:| |hash_aref_array | 1.008| 1.769| | | -| 1.76x|
-
marshal.c: don't call the proc with partially initialized objects. (#…
…4866) For cyclic objects, it requires to keep a st_table of the partially initialized objects.
-
Although `AC_PROG_CC_C99` has been obsolete, `AC_PROG_CC` is not and the latter is necessary not to make C++ compiler mandatory.
-
Must not be a bad idea to improve documents.
Commits on Sep 29, 2021
-
-
Enhanced RDoc for Enumerable (#4910)
Treats: #min #max #minmax #min_by #max_by #minmax_by #include?
-
-
[ruby/reline] Support ed_argument_digit by M+num
The vi mode can handle "argument number" before an operator or a motion, such as, "3x" (equals "xxx"), and "3l" (equals "lll"). In the emacs mode, GNU Readline can handle argument number with meta key, like "Meta+3 x" (equals "xxx"). ruby/reline@9183cc2
Commits on Sep 28, 2021
-
Enhanced RDoc for Enumerable (#4908)
Treated: #none? #one? #min
-
-
-
Enhanced RDoc for Enumerable (#4906)
Treats: #partition #group_by #tally #first #sort #sort_by #all? #any?
-
-
[rubygems/rubygems] Only disallow FIXME/TODO for first word of gemspe…
…c description 7890c98 matched the start of each line, whereas this matches the start of the entire string. rubygems/rubygems@432de7b
-
[rubygems/rubygems] Add missing
rubygem_push
prerequisiteJust like all the other tasks using the `built_gem_path`, the `:build` task is a prerequisite for this task too. rubygems/rubygems@d193f9a
-
-
[ruby/date] Make %v strftime flag use uppercase month
%v is supposed to be the VMS date, and VMS date format uses an uppercase month. Ruby 1.8 used an uppercase month for %v, but the behavior was changed without explanation in r31672. Time#strftime still uses an uppercase month for %v, so this change makes Date#strftime consistent with Time#strftime. Fixes [Bug #13810] ruby/date@56c489f
-
[ruby/drb] 6d890ec5979ec72586dd5f66dd8d33f7a9aefd1e was introduced to…
… support only Ruby 2.7+ ruby/drb@bec410d
-
[ruby/drb] gemspec: Remove "executables" configuration
This gem exposes 0 executables. ruby/drb@ed4d036
-
[ruby/ostruct] Allow properties to be accessed even when the object i…
…s moved to another Ractor (ruby/ostruct#29) ruby/ostruct@d85639f
-
-
-