Skip to content

Commit

Permalink
Make JSON::Parser initialization faster
Browse files Browse the repository at this point in the history
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%.
  • Loading branch information
luke-gru committed Jan 30, 2023
1 parent 6447b45 commit e525bed
Show file tree
Hide file tree
Showing 3 changed files with 1,864 additions and 2,983 deletions.

0 comments on commit e525bed

Please sign in to comment.