Browse files

Minor tweaks to Java ext for performance.

* Avoid full newInstance logic if constructing normal Array or Hash
* Skip intermediate RubyString for float and integer parsing
* Avoid toString for comparison with "-Infinity"
* Avoid repeated class.getName().equals() calls
  • Loading branch information...
1 parent e7927d3 commit 48440cb88cc89a162611dda4ed6b3cfc5c80f09e @headius headius committed Dec 20, 2011
Showing with 128 additions and 116 deletions.
  1. +104 −98 java/src/json/ext/
  2. +24 −18 java/src/json/ext/Parser.rl
Oops, something went wrong.

0 comments on commit 48440cb

Please sign in to comment.