Skip to content

Commit b6185b5

Browse files
committed
Make JSON::Parser initialization faster
Remove calls to rb_funcall, don't go back in to interpreter if not necessary. Also remove unnecessary calls to rb_respond_to(val) when val is nil. Speedup of JSON.parse when parsing small amount of data in a tight loop is up to 40%.
1 parent 6447b45 commit b6185b5

File tree

3 files changed

+1887
-3006
lines changed

3 files changed

+1887
-3006
lines changed

0 commit comments

Comments
 (0)