Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Give respond_to? a Symbol | Akira Matsuda | 2015-05-20 | 1 | -1/+1 |
| | |||||
* | Freeze static arguments for gsub | brainopia | 2015-04-02 | 1 | -1/+1 |
| | |||||
* | Prefer string patterns for gsub | brainopia | 2015-04-02 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | https://github.com/ruby/ruby/pull/579 - there is a new optimization since ruby 2.2 Previously regexp patterns were faster (since a string was converted to regexp underneath anyway). But now string patterns are faster and better reflect the purpose. Benchmark.ips do |bm| bm.report('regexp') { 'this is ::a random string'.gsub(/::/, '/') } bm.report('string') { 'this is ::a random string'.gsub('::', '/') } bm.compare! end # string: 753724.4 i/s # regexp: 501443.1 i/s - 1.50x slower | ||||
* | Doc fix [ci skip] | Sushruth Sivaramakrishnan | 2015-03-05 | 1 | -2/+2 |
| | |||||
* | Do gsub with a regexp instead of a string | Pablo Herrero | 2014-10-29 | 1 | -1/+1 |
| | |||||
* | Avoid a hash creation since defaults is a new hash already | Carlos Antonio da Silva | 2013-12-03 | 1 | -1/+1 |
| | |||||
* | Stop using local variables everywhere, make use of the reader | Carlos Antonio da Silva | 2013-12-03 | 1 | -2/+2 |
| | |||||
* | :sicssors: | Rafael Mendonça França | 2013-12-02 | 1 | -2/+0 |
| | |||||
* | Make execute priave API | Rafael Mendonça França | 2013-12-02 | 1 | -1/+1 |
| | |||||
* | Make load of NumberHelper thread safe | Rafael Mendonça França | 2013-12-02 | 1 | -0/+48 |