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 877eed0
Show file tree
Hide file tree
Showing 3 changed files with 1,891 additions and 3,010 deletions.

0 comments on commit 877eed0

Please sign in to comment.