Commit e525bed
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 e525bed
3 files changed
Lines changed: 1864 additions & 2983 deletions
0 commit comments