rapidjson-ruby icon indicating copy to clipboard operation
rapidjson-ruby copied to clipboard

WIP faster hash building

Open jhawthorn opened this issue 2 years ago • 0 comments

WIP

It's faster to buffer items in a (C) array before creating a hash from them. Partly because this avoids the cost in Ruby of building a ar_table before it is converted to an st_table once the hash goes beyond 8 elements.

I don't believe this has been tested sufficiently yet.

jhawthorn avatar Apr 10 '23 07:04 jhawthorn