summaryrefslogtreecommitdiff
path: root/defs
AgeCommit message (Collapse)Author
2019-08-11Use already fetched pull request [ci skip]Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/2338
2019-08-11prereq.status deals with removal of nmake VPATH notations [ci skip]Nobuyoshi Nakada
2019-08-08Remove temporary directory [ci skip]Nobuyoshi Nakada
2019-08-03Predefine some IDsNobuyoshi Nakada
2019-08-02Revert "Revert "Add a specialized instruction for `.nil?` calls""Yusuke Endoh
This reverts commit a0980f2446c0db735b8ffeb37e241370c458a626. Retry for macOS Mojave.
2019-08-02Revert "Add a specialized instruction for `.nil?` calls"Yusuke Endoh
This reverts commit 9faef3113fb4331524b81ba73005ba13fa0ef6c6. It seemed to cause a failure on macOS Mojave, though I'm unsure how. https://rubyci.org/logs/rubyci.s3.amazonaws.com/osx1014/ruby-master/log/20190802T034503Z.fail.html.gz This tentative revert is to check if the issue is actually caused by the change or not.
2019-07-31Add a specialized instruction for `.nil?` callsAaron Patterson
This commit adds a specialized instruction for called to `.nil?`. It is about 27% faster than master in the case where the object is nil or not nil. In the case where an object implements `nil?`, I think it may be slightly slower. Here is a benchmark: ```ruby require "benchmark/ips" class Niller def nil?; true; end end not_nil = Object.new xnil = nil niller = Niller.new Benchmark.ips do |x| x.report("nil?") { xnil.nil? } x.report("not nil") { not_nil.nil? } x.report("niller") { niller.nil? } end ``` On Ruby master: ``` [aaron@TC ~/g/ruby (master)]$ ./ruby compil.rb Warming up -------------------------------------- nil? 429.195k i/100ms not nil 437.889k i/100ms niller 437.935k i/100ms Calculating ------------------------------------- nil? 20.166M (± 8.1%) i/s - 100.002M in 5.002794s not nil 20.046M (± 7.6%) i/s - 99.839M in 5.020086s niller 22.467M (± 6.1%) i/s - 112.111M in 5.013817s [aaron@TC ~/g/ruby (master)]$ ./ruby compil.rb Warming up -------------------------------------- nil? 449.660k i/100ms not nil 433.836k i/100ms niller 443.073k i/100ms Calculating ------------------------------------- nil? 19.997M (± 8.8%) i/s - 99.375M in 5.020458s not nil 20.529M (± 7.0%) i/s - 102.385M in 5.020689s niller 21.796M (± 8.0%) i/s - 108.110M in 5.002300s [aaron@TC ~/g/ruby (master)]$ ./ruby compil.rb Warming up -------------------------------------- nil? 402.119k i/100ms not nil 438.968k i/100ms niller 398.226k i/100ms Calculating ------------------------------------- nil? 20.050M (±12.2%) i/s - 98.519M in 5.008817s not nil 20.614M (± 8.0%) i/s - 102.280M in 5.004531s niller 22.223M (± 8.8%) i/s - 110.309M in 5.013106s ``` On this branch: ``` [aaron@TC ~/g/ruby (specialized-nilp)]$ ./ruby compil.rb Warming up -------------------------------------- nil? 468.371k i/100ms not nil 456.517k i/100ms niller 454.981k i/100ms Calculating ------------------------------------- nil? 27.849M (± 7.8%) i/s - 138.169M in 5.001730s not nil 26.417M (± 8.7%) i/s - 131.020M in 5.011674s niller 21.561M (± 7.5%) i/s - 107.376M in 5.018113s [aaron@TC ~/g/ruby (specialized-nilp)]$ ./ruby compil.rb Warming up -------------------------------------- nil? 477.259k i/100ms not nil 428.712k i/100ms niller 446.109k i/100ms Calculating ------------------------------------- nil? 28.071M (± 7.3%) i/s - 139.837M in 5.016590s not nil 25.789M (±12.9%) i/s - 126.470M in 5.011144s niller 20.002M (±12.2%) i/s - 98.144M in 5.001737s [aaron@TC ~/g/ruby (specialized-nilp)]$ ./ruby compil.rb Warming up -------------------------------------- nil? 467.676k i/100ms not nil 445.791k i/100ms niller 415.024k i/100ms Calculating ------------------------------------- nil? 26.907M (± 8.0%) i/s - 133.755M in 5.013915s not nil 25.319M (± 7.9%) i/s - 125.713M in 5.007758s niller 19.569M (±11.8%) i/s - 96.286M in 5.008533s ``` Co-Authored-By: Ashe Connor <kivikakk@github.com>
2019-07-31run single spec [ci skip]Nobuyoshi Nakada
2019-07-25Separated tool/test/runner.rb and test/runner.rbNobuyoshi Nakada
As `make test-tool` does not use gems, and no Rubygems stuffs is needed, so moved such things to test/runner.rb. Also no longer nees `--test-target-dir` option.
2019-07-24Adjusted test runnerNobuyoshi Nakada
2019-07-22Run test-tool in the order of the testsNobuyoshi Nakada
2019-07-19Update before commitNobuyoshi Nakada
2019-07-17Separate pull-github from merge-github [ci skip]Nobuyoshi Nakada
2019-07-16Fixed the library path for toolsNobuyoshi Nakada
2019-07-15update-deps for dependenciesNobuyoshi Nakada
2019-07-15Followed up e8ddbc0239.Hiroshi SHIBATA
2019-07-09Do not make Unicode tables timestamp phonyNobuyoshi Nakada
2019-07-03Fix order of testsNobuyoshi Nakada
`check` includes `test-testframework`, `test-short` and its preceeding tests, but `test-all` does not.
2019-07-03Revert expansion of test-allNobuyoshi Nakada
2019-07-02Fix test-all substitutionNobuyoshi Nakada
2019-07-02Removed test-almost from TEST_TARGETSNobuyoshi Nakada
2019-07-02Substitute autoconf variables by prereq.statusNobuyoshi Nakada
2019-06-13Add pipeline operator [Feature #15799]Nobuyoshi Nakada
2019-06-07Moved Makefile.in under templateNobuyoshi Nakada
2019-06-07Revert "Moved Makefile.in under template"Nobuyoshi Nakada
This reverts commits: * 6f9d5fafe040cb02a1278fbfcdcb8063d564824c * bb3c89b6437049e26669b2156310670d5e06e386 And remove the dependency of Makefile on Makefile.in transitionally.
2019-06-07Moved Makefile.in under templateNobuyoshi Nakada
2019-05-25Force update all RDoc at installNobuyoshi Nakada
RDoc needs to parse all files at once for the cross-reference.
2019-05-08Fixed a typoNobuyoshi Nakada
2019-04-28Makefiles need to be indented by tabsNobuyoshi Nakada
2019-04-25BSD's mktemp does not have `-p`Takashi Kokubun
2019-04-25Show `make checkout-github/merge-github` in helpTakashi Kokubun
2019-04-25Resurrect `make xxx-github PR=1234` interfaceTakashi Kokubun
`call xxx, yyy` seems to pass " yyy" instead of "yyy".
2019-04-25Added pr-%Nobuyoshi Nakada
May merge multiple github pull requests at once. e.g., $ make pr-123456789 pr-987654321
2019-04-25Cache git config valuesNobuyoshi Nakada
2019-04-25Add `make checkout-github` tooTakashi Kokubun
You can use this like `make checkout-github PR=1234`
2019-04-25Make working tree under the source directoryNobuyoshi Nakada
2019-04-25Rebase the pull request in a worktreeNobuyoshi Nakada
A pull request based on an old commit may rewind too many files, even if unnecessary. As rewinding some files, e.g., common header files, configure.ac, will result in full-rebuild, rebase in a separate directory to get rid of such rewind.
2019-04-25Automatically gpg-sign rebase when commit.gpgsignTakashi Kokubun
is true Closes: https://github.com/ruby/ruby/pull/2148
2019-04-24Add `make fetch-github` and `make merge-github`Takashi Kokubun
Closes: https://github.com/ruby/ruby/pull/2147
2019-04-24force 10 chars SHA1 display.Koichi Sasada
`make update-src` shows latest commit hash for convinience. However, `rev-parse --short` option shows different length (maybe) between git versions. This fix force 10 chars with `--short=10`.
2019-04-21Show the latest commit hash after updatenobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-17Introduce pattern matching [EXPERIMENTAL]ktsj
[ruby-core:87945] [Feature #14912] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-10compile.c: name a hidden local variable as a predefined IDnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-10Reverting all commits from r67479 to r67496 because of CI failureskazu
Because hard to specify commits related to r67479 only. So please commit again. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-10compile.c: name a hidden local variable as a predefined IDnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-04gmake.mk: get rid of unicode normalization table timestampnobu
* common.mk, defs/gmake.mk: rid of unicode normalization tables timestamp. update the target tables file only when only it exists. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-04gmake.mk: update normalization tablenobu
* defs/gmake.mk: try to update Unicode normalization tables file if Unicode data files exist. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-03Introduce beginless range [Feature#14799]mame
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-14GNU make does not need srcs_vpathnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-31Method reference operatornobu
Introduce the new operator for method reference, `.:`. [Feature #12125] [Feature #13581] [EXPERIMENTAL] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e