Skip to content

Commit 32a2f66

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 32a2f66

File tree

3 files changed

+1955
-3068
lines changed

3 files changed

+1955
-3068
lines changed

0 commit comments

Comments
 (0)