Commit Graph

486 Commits

Author SHA1 Message Date
Masaaki Goshima 73a3af734f Add a new algorithm for decoding of struct field 2021-02-04 20:58:58 +09:00
Masaaki Goshima 3304ee45bf Optimize getting of cached decoder 2021-02-04 18:00:08 +09:00
Masaaki Goshima 5a0faf65e4
Merge pull request #111 from goccy/feature/fix-lint
Fix error by linter
2021-02-01 22:48:56 +09:00
Masaaki Goshima 0a5e990b17
Merge pull request #110 from goccy/feature/fix-marshal-json
Fix encoding of type which implemented MarshalJSON
2021-02-01 22:40:17 +09:00
Masaaki Goshima b24bbdb559 Add configuration file for golangci-lint 2021-02-01 22:35:06 +09:00
Masaaki Goshima b6ffc2368a Add test code 2021-02-01 22:34:53 +09:00
Masaaki Goshima 2a0d4603ea Fix error output by golangci-lint 2021-02-01 22:32:45 +09:00
Masaaki Goshima b431a095d6 Fix error by race detector 2021-02-01 20:02:43 +09:00
Masaaki Goshima 0297427ef5 Fix encoding of MarshalJSON type 2021-02-01 18:43:28 +09:00
Masaaki Goshima c410c7e5fa
Merge pull request #107 from goccy/feature/refactor-encoder
Refactor the encoder to fix a bug where streaming encoders can't reuse buffer
2021-02-01 12:19:34 +09:00
Masaaki Goshima 1d91627890 Add codecov.yml 2021-02-01 12:05:28 +09:00
Masaaki Goshima 04da39a443 Fix error message 2021-02-01 12:01:56 +09:00
Masaaki Goshima 48b6fe21c6 Fix race error 2021-02-01 11:36:41 +09:00
Masaaki Goshima 7895767eaa Add benchmark for streaming encoding 2021-01-31 23:01:39 +09:00
Masaaki Goshima ffc954d356 Fix MarshalNoEscape 2021-01-31 22:53:01 +09:00
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