Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [fix] 2.5 compat on JRuby 9.2 Fixnum/Bignum -> Integer | kares | 2019-02-21 | 1 | -10/+33 |
| | | | | | | | slightly ugly but the only way to still compile under 1.7 once Ruby 1.9.3 gets dropped this should get ironed out ! resolves GH-336 | ||||
* | Always use underscore for match string | Florian Frank | 2019-02-21 | 2 | -4/+4 |
| | |||||
* | Back-out change of directory of json-java.gemspec. | Xuân Baldauf | 2017-03-27 | 1 | -42/+0 |
| | |||||
* | Merge decimal_class patch by Michael Jaschob | Florian Frank | 2016-09-23 | 3 | -86/+158 |
| | | | | | | Also: - Avoid some issues with bundler - Avoid some issues with jruby | ||||
* | Fix issue #296 when parsing frozen strings | Florian Frank | 2016-07-26 | 2 | -71/+77 |
| | |||||
* | Treat ASCII_8BIT as UTF-8 by default | Florian Frank | 2016-06-03 | 3 | -91/+85 |
| | |||||
* | Remove quirks mode | Florian Frank | 2016-06-02 | 6 | -540/+126 |
| | |||||
* | Merge branch 'v1.8' | Florian Frank | 2016-02-25 | 13 | -29/+25 |
|\ | |||||
| * | Call OBJECT_HANDLER for objects without #to_json | Florian Frank | 2016-02-25 | 1 | -5/+8 |
| | | | | | | as a last-ditch effort. | ||||
| * | Remove remnants of GPL licenses | Florian Frank | 2015-09-11 | 13 | -24/+17 |
| | | |||||
* | | Remove generate restriction for […]/{…} | Florian Frank | 2015-06-13 | 1 | -32/+0 |
|/ | |||||
* | Improve JRuby perf. by removing source of multithreaded contention | Ben Browning | 2015-01-02 | 2 | -89/+91 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The RuntimeInfo.forRuntime method synchronizes all invocations and ParserSession#parseString was calling this many times when parsing large JSON strings. Thus, when running in a heavily multithreaded environment, threads were spending a large portion of their time waiting on that synchronization instead of doing work parsing the JSON. This fix simply passes in the RuntimeInfo object to the ParserSession when it's instantiated, since the RuntimeInfo is already known and we've already incurred the synchronization cost at that time. Using the test script at https://gist.github.com/bbrowning/0b89580b03a5f19e7a9f, I get the following results before and after this fix on my machine: Before: $ jruby ~/tmp/json_contention.rb 337.920000 0.570000 338.490000 ( 57.955000) After: $ jruby ~/tmp/json_contention.rb 326.400000 0.580000 326.980000 ( 43.084000) That's a 25% reduction in processing time for parsing the same JSON on my quad core machine. I'd expect an even higher percentage improvement on a machine with more CPUs. | ||||
* | Fix documentation wording | Florian Frank | 2014-07-03 | 1 | -1/+1 |
| | |||||
* | Try to convert first with to_hash, then to_h | Florian Frank | 2013-02-21 | 1 | -2/+3 |
| | | | | | | | | rb_convert_type doesn't return if conversion fails, so use rb_check_convert_type and the raise vi rb_convert_type. Make sure, that this behaviour is consisten across all generator implementations. Fixes https://github.com/flori/json/issues/162 | ||||
* | Security fix create_additons/JSON::GenericObjectv1.7.7 | Florian Frank | 2013-02-11 | 2 | -2/+2 |
| | |||||
* | fix a bug in the JRuby implementation. getInstanceVariable() can return a ↵ | John Shahid | 2013-02-04 | 1 | -1/+2 |
| | | | | null which causes NPE. | ||||
* | Increase hash likeness of State objects | Florian Frank | 2012-12-31 | 1 | -2/+18 |
| | |||||
* | add merge alias for configure in jruby | Florian Frank | 2012-11-29 | 1 | -1/+1 |
| | |||||
* | Change actual rl filessferik-max_nesting | Florian Frank | 2012-10-07 | 2 | -3/+3 |
| | |||||
* | Increase default max_nesting to 100 | Erik Michaels-Ober | 2012-10-05 | 2 | -2/+2 |
| | | | | See discussion at https://github.com/intridea/multi_json/pull/59. | ||||
* | enforce utf8 encoding in parsed stringsjruby-fix-encoding | Florian Frank | 2012-05-10 | 3 | -37/+52 |
| | |||||
* | force jruby encoding after generation | Florian Frank | 2012-05-09 | 1 | -0/+4 |
| | |||||
* | Propagate src encoding to values made from it (fixes 1.9 mode converting ↵ | Thomas E. Enebo | 2012-02-11 | 1 | -0/+1 |
| | | | | everything to ascii-8bit; harmless for 1.8 mode too) | ||||
* | Merge branch 'more_jruby_tweaks' of https://github.com/headius/json into ↵ | Florian Frank | 2011-12-21 | 2 | -88/+94 |
|\ | | | | | | | headius-more_jruby_tweaks | ||||
| * | Only allocate a single "view" bytelist, and update it as needed. | Charles Oliver Nutter | 2011-12-20 | 2 | -88/+94 |
| | | | | | | | | | | | | | | Conflicts: java/src/json/ext/Parser.java java/src/json/ext/Parser.rl | ||||
* | | Merge branch 'hash-duckyped-object_classes' | Florian Frank | 2011-12-21 | 2 | -4/+0 |
|\ \ | |/ |/| | |||||
| * | Remove superflous comment | Florian Frank | 2011-12-21 | 2 | -4/+0 |
| | | |||||
* | | Fix #109 | Florian Frank | 2011-12-20 | 2 | -0/+0 |
|/ | |||||
* | Support duck typed ruby array in JRuby as well | Florian Frank | 2011-12-20 | 2 | -16/+16 |
| | |||||
* | Support hash ducktype objects on JRuby as well | Florian Frank | 2011-12-20 | 3 | -49/+58 |
| | |||||
* | Only allocate a single ParserResult, and pass it along the stack.headius-jruby_perf_tweaks | Charles Oliver Nutter | 2011-12-20 | 2 | -141/+170 |
| | |||||
* | Better ByteList subsequence and break up some parse methods. | Charles Oliver Nutter | 2011-12-20 | 2 | -84/+126 |
| | |||||
* | Use appropriate byteListToInum for Ruby version. | Charles Oliver Nutter | 2011-12-20 | 1 | -1/+3 |
| | |||||
* | Minor tweaks to Java ext for performance. | Charles Oliver Nutter | 2011-12-20 | 2 | -116/+128 |
| | | | | | | | * 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 | ||||
* | support buffer length settings | Florian Frank | 2011-11-23 | 1 | -0/+21 |
| | |||||
* | Extract utils out of this library into json-utilsv1.6.0 | Florian Frank | 2011-09-13 | 1 | -80/+84 |
| | |||||
* | Add some documentationv1.5.4 | Florian Frank | 2011-08-31 | 2 | -1/+6 |
| | |||||
* | Merge branch 'quirks-mode-parser' into quirks-mode | Florian Frank | 2011-07-31 | 3 | -131/+470 |
|\ | | | | | | | | | | | | | | | | | Conflicts: java/src/json/ext/Parser.java java/src/json/ext/Parser.rl json.gemspec json_pure.gemspec tests/test_json.rb | ||||
| * | Implement quirks_mode | Florian Frank | 2011-07-31 | 3 | -109/+448 |
| | | | | | | | | This allows parsing of primitive values | ||||
* | | started quirks mode for generator | Florian Frank | 2011-07-27 | 9 | -72/+96 |
|/ | |||||
* | Ported fixes from fix_memory_leak into Parser.rl | Florian Frank | 2011-07-08 | 2 | -85/+107 |
| | | | | | Ported semantic of the desired behaviour in ruby-core:35079 to java as well. | ||||
* | Merge branch 'fix_memory_leak' of https://github.com/bigfix/json into ↵ | Florian Frank | 2011-07-04 | 9 | -46/+51 |
|\ | | | | | | | development | ||||
| * | Fix memory leak when used from multiple JRuby runtimes. | John Firebaugh | 2011-05-18 | 9 | -46/+51 |
| | | |||||
* | | Don't optimize calls for ducktypes | Florian Frank | 2011-05-12 | 2 | -27/+35 |
| | | |||||
* | | Merge branch 'master' of gate.dyna.ping.de:/git/json | Florian Frank | 2011-05-12 | 2 | -17/+25 |
|\ \ | |/ |/| | |||||
| * | use []= method if objectClass isn't a Hash | Florian Frank | 2011-05-11 | 2 | -17/+25 |
| | | |||||
* | | flori/json#60: Incorrect pretty-print indentation | Clemens Fuchslocher | 2011-02-26 | 1 | -1/+1 |
| | | |||||
* | | flori/json#60: Incorrect pretty-print indentation | Clemens Fuchslocher | 2011-02-26 | 1 | -5/+1 |
|/ | |||||
* | renamed :match argument to :match_stringv1.5.0 | Florian Frank | 2011-01-05 | 2 | -10/+10 |
| | |||||
* | avoid object creation | Florian Frank | 2011-01-03 | 2 | -42/+38 |
| |