Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jun 1, 2015
  1. Bump version to 1.8.3

    authored
  2. use newest rubygems

    authored
Commits on May 29, 2015
  1. Merge pull request #247 from nobu/potential_memory_leak

    authored
    Potential memory leak
Commits on May 28, 2015
  1. @nobu

    generator.c: allocate structs with wrapper

    nobu authored nobu committed
    * ext/json/ext/generator/generator.c (cState_s_allocate): allocate
      structs with making new wrapper objects and get rid of potential
      memory leak.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. @nobu

    parser.rl: allocate structs with wrapper

    nobu authored nobu committed
    * ext/json/ext/parser/parser.rl (cJSON_parser_s_allocate): allocate
      structs with making new wrapper objects and get rid of potential
      memory leak.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Apr 22, 2015
  1. Merge pull request #245 from headius/patch-1

    authored
    Fix mention of C extensions in README
Commits on Apr 21, 2015
  1. @headius

    Fix mention of C extensions in README

    headius authored
    JRuby's extension is part of json now and is written in Java.
Commits on Feb 12, 2015
  1. @hsbt

    use ZALLOC if it can be used, and defined ZALLOC macro.

    hsbt authored committed
  2. @hsbt

    sync trunk again: fixed regression of r49027

    hsbt authored committed
Commits on Jan 9, 2015
  1. Bump version number to 1.8.2

    authored
  2. Add to CHANGES

    authored
  3. @mmacvicar

    Make generator format test backwards compatible

    mmacvicar authored committed
  4. @mmacvicar

    Use space_before as documented in the generator

    mmacvicar authored committed
    This option was already documented but not implemented, allows setting
    the separator used before the ":" during generation.
  5. @mmacvicar

    Add test for format options used by the generator

    mmacvicar authored committed
    The space_before, space, indent, object_nl and array_nl options of the
    space were not covered.
  6. @JuanitoFatas

    Use the new build env on Travis.

    JuanitoFatas authored committed
  7. @jc00ke

    CI with current rbx-2

    jc00ke authored committed
Commits on Jan 8, 2015
  1. Bump version number to 1.8.2

    authored
Commits on Jan 3, 2015
Commits on Jan 2, 2015
  1. Merge pull request #225 from mmacvicar/fix-space-before

    authored
    JSON::State is not using the parameter space_before
  2. Merge pull request #226 from bbrowning/runtimeinfo-contention-fix

    authored
    Improve JRuby perf. by removing source of multithreaded contention
  3. @bbrowning

    Improve JRuby perf. by removing source of multithreaded contention

    bbrowning authored committed
    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.
  4. @iainbeeston

    Added ruby-head to travis allowed-failures

    iainbeeston authored committed
    This is probably a contraversial idea. ruby-head can be fairly unstable
    but then json is a core gem. At least if it's an allowed-failure then
    builds will always be run against ruby-head, but pull requests (and
    master) won't report build failures if something is broken in ruby-head
  5. @jasonrclark

    Don't mutate JSON.dump_default_options from dump

    jasonrclark authored committed
    The use of Hash#update from the JSON.dump method was mutating the
    dump_default_options hash on any call to dump with a limit provided. An
    individual method call with an overriding value shouldn't update the
    defaults in this way.
  6. No binstubs

    authored
  7. Reindented

    authored
  8. @vipulnsward

    Document `Rational` json generation methods.

    vipulnsward authored committed
  9. @vipulnsward

    Document `Complex` json generation methods.

    vipulnsward authored committed
  10. @vipulnsward

    Use method_defined? to check if method exists instead of slower check…

    vipulnsward authored committed
    … on instance_methods
  11. @danielgrippi

    Update json-java.gemspec

    danielgrippi authored committed
    Pluralize "license" to match other gemspecs.
  12. Fix typo in comment

    Ignacio Galindo authored committed
Something went wrong with that request. Please try again.