Commit Graph

706 Commits

Author SHA1 Message Date
Masaaki Goshima 3ee1ab2711
Merge pull request #148 from goccy/refactor
Fix any bugs of encoder
2021-03-12 02:14:40 +09:00
Masaaki Goshima 096bbf3d20 Fix build error 2021-03-12 01:01:41 +09:00
Masaaki Goshima 4709eed615 Support Go 1.16 2021-03-12 00:57:35 +09:00
Masaaki Goshima bb3086c375 Remove root property from encodeCompileContext and opcode 2021-03-12 00:56:30 +09:00
Masaaki Goshima 4cdbd4e962 Remove unnecessary code 2021-03-12 00:43:48 +09:00
Masaaki Goshima 7290b0d6c3 Add build workflow 2021-03-11 23:43:21 +09:00
Masaaki Goshima 4167aefe08 Fix any bugs of encoder
- fix some issues ( #104 #118 #144 #147 )
- fix recursive call operation
- use json.Number of encoding/json
- fix encoding of MarshalJSON and MarshalText
- fix pointer operation
- remove 'anonymous' and 'only' operation
- add test cases for array/slice/map/marshaler
2021-03-11 19:29:35 +09:00
Masaaki Goshima 116df927e2 Add CHANGELOG.md 2021-02-22 16:59:09 +09:00
Masaaki Goshima cd03bc4033
Merge pull request #143 from goccy/feature/remove-unnecessary-op
Remove unnecessary optype
2021-02-22 15:27:18 +09:00
Masaaki Goshima 43b585a81c Remove unnecessary optype 2021-02-22 15:16:53 +09:00
Masaaki Goshima 80b483ce97
Merge pull request #141 from goccy/feature/integrate-int-op
Reduce memory usage at compile
2021-02-22 15:07:26 +09:00
Masaaki Goshima e60eabf9da Fix error by linter 2021-02-19 15:34:56 +09:00
Masaaki Goshima 9d4348e66b Modify test case 2021-02-19 15:13:33 +09:00
Masaaki Goshima f7b1319735 Integrate int/int8/int16/int32/int64 and uint/uint8/uint16/uint32/uint64 operation to reduce memory usage at compile 2021-02-19 15:12:30 +09:00
Masaaki Goshima 58a761643a
Merge pull request #140 from goccy/feature/fix-unmarshal-type-error
Fix decoder
2021-02-18 19:48:08 +09:00
Masaaki Goshima aa0422c239 Modify section of comment out 2021-02-18 19:31:35 +09:00
Masaaki Goshima 24cc1b77b2 Fix checkptr error 2021-02-18 19:20:07 +09:00
Masaaki Goshima 23c5766bd2 Add test case 2021-02-18 19:11:44 +09:00
Masaaki Goshima f8fd59516b Fix decoding of deep recursive structure 2021-02-18 19:05:06 +09:00
Masaaki Goshima 35eee537d4 Add test case 2021-02-18 17:59:29 +09:00
Masaaki Goshima 6eb23deb6f Fix decoding of embedded unexported pointer field 2021-02-18 17:46:28 +09:00
Masaaki Goshima cf6cf56e3d Fix invalid test case 2021-02-18 16:49:51 +09:00
Masaaki Goshima 0288026fde Fix decoding of invalid value 2021-02-18 16:42:38 +09:00
Masaaki Goshima 91c53cd3f7 Fix decoding of prefilled value 2021-02-18 12:13:49 +09:00
Masaaki Goshima b2a7d22fb4 Fix not being able to return UnmarshalTypeError when it should be returned 2021-02-18 11:32:08 +09:00
Masaaki Goshima b0e53330b6
Merge pull request #138 from goccy/feature/fix-decode-null
Fix decoding of null value
2021-02-17 15:20:01 +09:00
Masaaki Goshima 5351464001 Fix decoding of null value 2021-02-17 01:51:42 +09:00
Masaaki Goshima d8c3c8d209
Merge pull request #137 from goccy/feature/fix-predef-ptr
Use pre allocated pointer if exists it
2021-02-17 00:18:21 +09:00
Masaaki Goshima e09027425c Use pre allocated pointer if exists it 2021-02-17 00:03:07 +09:00
Masaaki Goshima 72cdc2a1d5
Merge pull request #136 from goccy/feature/fix-null-string
Fix decoding of type of null string
2021-02-16 23:48:22 +09:00
Masaaki Goshima 644ac4a692 Fix decoding of type of null string 2021-02-16 11:46:00 +09:00
Masaaki Goshima da543caf04
Update README.md 2021-02-16 02:59:30 +09:00
Masaaki Goshima c14650d39d
Merge pull request #135 from goccy/feature/merge-stream
Optimize streaming decoder by BCE
2021-02-16 02:30:41 +09:00
Masaaki Goshima 412dbe93f8 Fix error by linter 2021-02-16 02:24:27 +09:00
Masaaki Goshima 64e29e00d6 Optimize streaming decoder by BCE 2021-02-16 02:13:13 +09:00
Masaaki Goshima e6c1209305
Merge pull request #134 from goccy/feature/refactor-bitmap
Use bits.TrailingZeros for bitmap field
2021-02-15 21:27:06 +09:00
Masaaki Goshima ddd7019dd3 Use bits.TrailingZeros for bitmap field 2021-02-15 20:05:35 +09:00
Masaaki Goshima e080e515fd
Merge pull request #133 from goccy/feature/fix-decoder
Fix decoder (  mainly map type fixing )
2021-02-15 19:01:33 +09:00
Masaaki Goshima 6575394cc0 Fix error by linter 2021-02-15 18:54:12 +09:00
Masaaki Goshima 98824e9bd9 Fix decoding of struct type 2021-02-15 18:46:34 +09:00
Masaaki Goshima 9053c385ea Fix decoding of map type 2021-02-15 18:46:34 +09:00
Masaaki Goshima fa87dde0c3 Refactor skipValue 2021-02-15 18:46:34 +09:00
Masaaki Goshima 1f75cdd023 Initialize buffer size each streaming decoding 2021-02-15 18:46:34 +09:00
Masaaki Goshima cbe680fc5b
Merge pull request #132 from goccy/feature/add-opcode-for-ptr-field
Add pointer-type StructField operations to the encoder
2021-02-15 13:08:23 +09:00
Masaaki Goshima ddc486cc62 Add opcode for bool type to the encoder 2021-02-15 12:57:43 +09:00
Masaaki Goshima 565f1e866e Add cover_bool_test.go 2021-02-15 11:48:09 +09:00
Masaaki Goshima 72765ed523 Add StructField operation for ptr type 2021-02-15 11:31:49 +09:00
Masaaki Goshima 589c4b0350 Refactor cover_float64_test.go 2021-02-15 11:31:26 +09:00
Masaaki Goshima d8af48454d Refactor cover_float32_test.go 2021-02-15 11:29:42 +09:00
Masaaki Goshima 77dd50697f Refactor cover_uint64_test.go 2021-02-15 11:28:09 +09:00