Commit Graph

871 Commits

Author SHA1 Message Date
Masaaki Goshima 61e533dca2 Refactor encoder 2021-01-31 22:45:59 +09:00
Masaaki Goshima 1ea4ffc9c8
Merge pull request #103 from goccy/feature/optimize-lookup-opcodeset
Improve performance of lookup of opcodeSet at encoding
2021-01-31 12:57:05 +09:00
Masaaki Goshima 90c2560b52 Fix accepatable address range 2021-01-31 02:30:48 +09:00
Masaaki Goshima 1c0b7e7c7d Add benchmark for encoding of bool type 2021-01-31 01:49:35 +09:00
Masaaki Goshima a6ea71d2f6 Improve performance of lookup opcodeSet at encoding 2021-01-31 01:48:54 +09:00
Masaaki Goshima c655881253
Merge pull request #102 from goccy/feature/fix-decoding-escaped-char
Fix decoding of escape char at UnmarshalJSON
2021-01-30 02:09:57 +09:00
Masaaki Goshima 6e154ee727 Fix decoding of escape char at UnmarshalJSON 2021-01-30 02:03:31 +09:00
Masaaki Goshima 73dac85d26
Merge pull request #101 from goccy/feature/fix-marshaler-performance
Fix encoding of type which implemented MarshalJSON
2021-01-30 01:55:40 +09:00
Masaaki Goshima 0059153b07 Fix UnmarshalJSON for RawMessage type 2021-01-30 01:47:31 +09:00
Masaaki Goshima 84c8b84671 Fix encoding of type which implemented MarshalJSON 2021-01-30 01:14:22 +09:00
Masaaki Goshima 2558d4399f Add benchmark for encoding of type which implemented MarshalJSON 2021-01-28 22:19:16 +09:00
Masaaki Goshima 94dcae2d48
Merge pull request #100 from goccy/feature/optimize-encoder
Optimize copy of byte slice for encoder
2021-01-27 12:11:18 +09:00
Masaaki Goshima 182826fe68 Optimize encoding engine 2021-01-27 10:58:40 +09:00
Masaaki Goshima fe1fa3915a
Merge pull request #99 from goccy/feature/add-bench
Add some benchmarks for encoder
2021-01-27 10:58:23 +09:00
Masaaki Goshima 2c95711d45 Add benchmark 2021-01-26 23:56:10 +09:00
Masaaki Goshima 72e9fa8193
Merge pull request #97 from goccy/feature/fix-interface
Fix interface operation and optimize map operation
2021-01-25 13:22:30 +09:00
Masaaki Goshima 02797daba4 Optimize map operation 2021-01-25 13:10:07 +09:00
Masaaki Goshima 0be236361a Improve performance of encoding map type ( escaped and not indented ) 2021-01-25 00:23:07 +09:00
Masaaki Goshima 689587cd72 Fix indent encoding 2021-01-25 00:06:16 +09:00
Masaaki Goshima 75f34df1c6 Fix interface operation 2021-01-24 23:27:23 +09:00
Masaaki Goshima d59d465042 Remove InterfaceEnd operation 2021-01-24 23:04:54 +09:00
Masaaki Goshima 0771b8c7fc Fix cast of interface type 2021-01-24 22:59:17 +09:00
Masaaki Goshima c09798d552 Fix interface operation 2021-01-24 20:39:59 +09:00
Masaaki Goshima ee36bdedb6 Fix interface 2021-01-24 17:20:36 +09:00
Masaaki Goshima ef70c61783 Add benchmark for map[string]inteface{} 2021-01-24 15:18:15 +09:00
Masaaki Goshima 399354d64d Fix encoding runner interface 2021-01-24 15:17:39 +09:00
Masaaki Goshima 86ae7d931a
Merge pull request #95 from goccy/feature/fix-unsupport-op
Fix #93
2021-01-22 22:02:54 +09:00
Masaaki Goshima 20b409ed1f Fix operation of StructFieldOmitEmptyMarshalJSON 2021-01-22 20:08:57 +09:00
Masaaki Goshima ea71048fce Fix decoding of `null` bytes for struct type 2021-01-22 20:06:37 +09:00
Masaaki Goshima bf5220c3fb Fix struct end operation 2021-01-22 20:06:20 +09:00
Masaaki Goshima f8b2b03584 Fix forgot to add key in omitempty field 2021-01-22 18:31:07 +09:00
Masaaki Goshima fa4d5842e6 Fix encoding of pointered MarshalJSON type with omitempty 2021-01-22 18:26:28 +09:00
Masaaki Goshima d59cdefc1d Add StructFieldOmitEmptyStringPtr 2021-01-22 18:19:54 +09:00
Masaaki Goshima d933310ad4 Keep reference value while encoding by MarshalJSON 2021-01-22 16:28:12 +09:00
Masaaki Goshima d4b5171fdf
Merge pull request #94 from goccy/feature/fix-issue93
Fix some bugs of encoder/decoder ( for #93 )
2021-01-22 14:11:58 +09:00
Masaaki Goshima 3682ec0cf3 Copy buffer to decode of UnmarshalJSON 2021-01-22 14:01:01 +09:00
Masaaki Goshima 305e858ea1 Fix encoding with nil pointer type of implementing MarshalJSON 2021-01-22 13:28:33 +09:00
Masaaki Goshima ccf319b2b0 Fix decoding of interface type 2021-01-22 13:28:03 +09:00
Masaaki Goshima 020aaffd4c
Merge pull request #92 from goccy/feature/coverage
Add test cases for string type
2021-01-21 00:34:52 +09:00
Masaaki Goshima d859255868 Add test cases for string type 2021-01-21 00:22:20 +09:00
Masaaki Goshima aea9579a7b
Merge pull request #91 from goccy/feature/coverage
Add test cases for float32/float64 type
2021-01-19 21:08:24 +09:00
Masaaki Goshima d1cfcb0450 Add test cases for float32/float64 type 2021-01-19 20:41:14 +09:00
Masaaki Goshima 8578b68bf3
Merge pull request #90 from goccy/feature/coverage
Add test cases for unsigned integer types
2021-01-19 15:03:10 +09:00
Masaaki Goshima 9c6aff7317 Add test cases for unsigned integer types 2021-01-19 14:54:27 +09:00
Masaaki Goshima 30ab976eb4 Add compatible test 2021-01-19 14:01:43 +09:00
Masaaki Goshima e6e5fe665c
Merge pull request #89 from goccy/feature/coverage
Add test cases for int32 and int64 type
2021-01-18 22:43:45 +09:00
Masaaki Goshima 5eaa3c023c Add test cases for int64 type 2021-01-18 22:35:10 +09:00
Masaaki Goshima 861236119a Add test cases for int32 type 2021-01-18 21:50:52 +09:00
Masaaki Goshima 8b3bc49833
Merge pull request #88 from goccy/feature/fix-optype
Reduce code size of encode_optype.go
2021-01-17 22:40:40 +09:00
Masaaki Goshima 3989252ca9 Reduce code size of encode_optype.go 2021-01-17 22:23:28 +09:00