Skip to content

Commit

Permalink
Reduce Array allocations.
Browse files Browse the repository at this point in the history
Before
```
[["rack/lib/rack/utils.rb", 116, :T_ARRAY], [11988, 0, 11663, 0, 2, 463840]]
```

After
```
[["rack/lib/rack/utils.rb", 116, :T_ARRAY], [6002, 0, 5624, 0, 2, 232640]]
```
  • Loading branch information
tgxworld committed Feb 25, 2015
1 parent 19e8e49 commit 6dfe4a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/utils.rb
Expand Up @@ -113,7 +113,7 @@ def parse_nested_query(qs, d = nil)
params = KeySpaceConstrainedParams.new

(qs || '').split(d ? /[#{d}] */n : DEFAULT_SEP).each do |p|
k, v = p.split('='.freeze, 2).map { |s| unescape(s) }
k, v = p.split('='.freeze, 2).map! { |s| unescape(s) }

normalize_params(params, k, v)
end
Expand Down

0 comments on commit 6dfe4a7

Please sign in to comment.