| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
https://github.com/flori/json/commit/1942689b67
|
| |
|
| |
|
|
|
|
| |
https://github.com/flori/json/commit/e2ad91fc2094d3cc2f76adc6c55d420cd06f34d8
|
|
|
|
|
| |
* type-limits when plain-char is unsigned
* unused-const-variable for NFA constants
|
| |
|
|
|
|
|
|
| |
[ci 2]
https://github.com/flori/json/commit/1982070cb8
|
|
|
|
| |
https://github.com/flori/json/commit/f398769332
|
|
|
|
|
|
| |
This change fixes an incorrect `#` position in the API documentation of the `JSON` module.
https://github.com/flori/json/commit/dc4b62424f
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This value should either be pinned, or looked up when needed at runtime.
Without pinning, the GC may move the encoding object, and that could
cause a crash.
In this case it is easier to find the value at runtime, and there is no
performance penalty (as Ruby caches encoding indexes). We can shorten
the code, be compaction friendly, and incur no performance penalty.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Stop BigDecimal-specific optimization. Instead, it tries the conversion
methods in the following order:
1. `try_convert`,
2. `new`, and
3. class-named function, e.g. `Foo::Bar.Baz` function for `Foo::Bar::Baz` class
If all the above candidates are unavailable, it fallbacks to Float.
|
| |
|
| |
|
| |
|
|
|
|
| |
upstream
|
| |
|
| |
|
|
|
|
|
|
|
| |
If set to true all parsed objects will be
immediately frozen, and strings will be
deduplicated if the Ruby implementation
allows it.
|
|
|
|
| |
https://github.com/flori/json/commit/cb61a00ba8
|
|
|
|
| |
https://github.com/flori/json/commit/6dfa885134
|
|
|
|
|
| |
* Enhanced RDoc for JSON.dump
https://github.com/flori/json/commit/03f1699ec4
|
| |
|
|
|
|
| |
https://github.com/flori/json/commit/f8c0fe2408
|
|
|
|
| |
https://github.com/flori/json/commit/a55c91934e
|
| |
|
|
|
|
| |
https://github.com/flori/json/commit/e4eead665c
|
|
|
|
| |
https://github.com/flori/json/commit/33e64ef255
|
|
|
|
| |
https://github.com/flori/json/commit/20d7be605a
|
|
|
|
|
|
| |
issue #386.
https://github.com/flori/json/commit/0be363c99b
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Squashed commit of the following:
commit 26d181059989279a79c433cedcd893b4f52e42ee
Author: Francois Chagnon <francois.chagnon@jadedpixel.com>
Date: Tue Sep 15 21:17:34 2015 +0000
add config options for escape_slash
commit fa282334051b16df91ca097dd7304b46f3bc7719
Author: Francois Chagnon <francois.chagnon@jadedpixel.com>
Date: Mon Feb 9 21:09:33 2015 +0000
add forward slash to escape character
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
https://github.com/flori/json/commit/26c1769969
|
|
|
|
| |
https://github.com/flori/json/commit/ee5b6a74e9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When use non-frozen string for hash key with `rb_hash_aset()`, it will duplicate and freeze it internally.
To avoid duplicate and freeze, this patch will give a frozen string in `rb_hash_aset()`.
```
Warming up --------------------------------------
json 14.000 i/100ms
Calculating -------------------------------------
json 148.844 (± 1.3%) i/s - 756.000 in 5.079969s
```
```
Warming up --------------------------------------
json 16.000 i/100ms
Calculating -------------------------------------
json 165.608 (± 1.8%) i/s - 832.000 in 5.025367s
```
```
require 'json'
require 'securerandom'
require 'benchmark/ips'
obj = []
1000.times do |i|
obj << {
"id": i,
"uuid": SecureRandom.uuid,
"created_at": Time.now
}
end
json = obj.to_json
Benchmark.ips do |x|
x.report "json" do |iter|
count = 0
while count < iter
JSON.parse(json)
count += 1
end
end
end
```
https://github.com/flori/json/commit/18292c0c1d
|
|
|
|
| |
https://github.com/flori/json/commit/ada48f0236
|
|
|
|
| |
https://github.com/flori/json/commit/470d909c0d
|
|
|
|
| |
https://github.com/flori/json/commit/7bee2c7c13
|
|
|
|
| |
https://github.com/flori/json/commit/e7e3732130
|
|
|
|
|
| |
As it is ignored and set at building packages automatically, it is
just nonsense to set in gemspec file for input.
|
|
|
|
| |
https://github.com/flori/json/commit/9f430a7bba
|
|
|
|
| |
https://github.com/flori/json/commit/1920653013
|
|
|
|
| |
https://github.com/flori/json/commit/78ec5e2bd3
|