http: use rb_hash_clear in Ruby 2.0+
commit32fefc5742d1646d63a119b281baefcac551dfec
authorEric Wong <e@80x24.org>
Fri, 29 May 2015 05:59:27 +0000 (29 05:59 +0000)
committerEric Wong <e@80x24.org>
Fri, 29 May 2015 05:59:27 +0000 (29 05:59 +0000)
tree41b25363661184ad338666ea978ab31f9f2992f1
parent3f0b69e8557875eeb98e1eaeb097bf3607fa8e69
http: use rb_hash_clear in Ruby 2.0+

Calling the function directly avoids the overhead of Ruby method
table lookup and global method cache.  The only downside is this is
now hidden from tracers and cannot be overridden from Ruby, but I
doubt anybody cares about that.
ext/unicorn_http/extconf.rb
ext/unicorn_http/unicorn_http.rl