| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
https://github.com/ruby/ruby/commit/cc0313436160b735a3d41361cb5e3eeb10fcbdad
|
| |
|
|\
| |
| | |
Add optional fallback return value parameter
|
| | |
|
|\ \
| | |
| | | |
Typo with "indentation"
|
| | |
| | |
| | | |
Intendation => Indentation
|
|\ \ \
| | | |
| | | | |
Support YAML 1.2 Core Schema
|
| | | | |
|
|\ \ \ \
| |_|/ /
|/| | | |
Fix typo in error message
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
ref. https://github.com/ruby/ruby/commit/9386ecf9b6baf6fd37d97bfee025702cee411718
|
| | | |
| | | |
| | | |
| | | | |
ref. https://github.com/ruby/ruby/commit/778bbac8ac2ae50f0987c4888f7158296ee5bbdd
|
| | | |
| | | |
| | | |
| | | | |
ref. https://github.com/ruby/ruby/commit/3e92b635fb5422207b7bbdc924e292e51e21f040
|
| |/ /
|/| |
| | |
| | | |
https://github.com/ruby/ruby/commit/db48c307944a9a18877236bdf9e9b778875f38ed
|
| |/
|/| |
|
| | |
|
|\ \
| | |
| | | |
Backport revision r53078 and r53079 from ruby/ruby.
|
|/ /
| |
| |
| |
| | |
https://github.com/ruby/ruby/commit/cc0313436160b735a3d41361cb5e3eeb10fcbdad
https://github.com/ruby/ruby/commit/db48c307944a9a18877236bdf9e9b778875f38ed
|
| | |
|
|\ \
| | |
| | | |
Fixes line width handling
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
libyaml understands -1 as unlimited:
https://github.com/tenderlove/psych/blob/master/ext/psych/yaml/yaml.h#L1864
Raises on other negative values.
|
|/ / |
|
| | |
|
|/ |
|
|\
| |
| | |
Use a constant to avoid thousands of String allocations of "<<"
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Example script:
```ruby
require 'allocation_tracer'
ObjectSpace::AllocationTracer.setup(%i{path line type})
require 'net/http'
yaml = Net::HTTP.get(URI('https://raw.githubusercontent.com/ManageIQ/manageiq/master/spec/tools/scvmm_data/get_inventory_output_hash.yml'))
require 'yaml'
result = ObjectSpace::AllocationTracer.trace do
YAML.load(yaml)
end
result.sort_by{|k, v| k}.each{|k, v|
puts ([v[0]]+k).join("\t")
}
```
With the example above, this change avoids creating 22,000+ String objects as seen below:
**Before, running master at 9055469038 and rake install_gem**
```
$ ruby benchmark_allocations.rb | grep T_STRING | sort -nr | head -n 10
43444 /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych.rb 376 T_STRING
22439 /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/visitors/to_ruby.rb 338 T_STRING
7082 /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb 105 T_STRING
5308 /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb 40 T_STRING
3339 /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb 83 T_STRING
3259 /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb 54 T_STRING
3014 /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb 116 T_STRING
3010 /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb 129 T_STRING
3001 /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb 137 T_STRING
2409 /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb 126 T_STRING
```
**After this commit and rake install_gem**
```
$ ruby benchmark_allocations.rb | grep T_STRING | sort -nr | head -n 10
43444 /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych.rb 376 T_STRING
7058 /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb 105 T_STRING
5315 /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb 40 T_STRING
3410 /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb 83 T_STRING
3260 /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb 54 T_STRING
3004 /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb 116 T_STRING
3000 /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb 129 T_STRING
2991 /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb 137 T_STRING
2401 /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb 126 T_STRING
1800 /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb 130 T_STRING
```
|
|\
| |
| | |
Drop Ruby 1.9 support
|
| | |
|