Nao Yonashiro
|
6832682204
|
fix: mismatched between len(s.buf) and s.bufSize
close #348
|
2022-03-18 23:31:33 +09:00 |
Nao Yonashiro
|
6f811065b6
|
feat: improves escapeString's performance
|
2022-03-13 08:42:55 +09:00 |
Nao Yonashiro
|
f714c3961d
|
fix: to care ints minimum values
close #343
|
2022-03-12 23:43:03 +09:00 |
Masaaki Goshima
|
f352b8732a
|
Merge pull request #334 from orisano/feat-improve-performance-escaped
feat: improve performance when a payload contains escape sequence
|
2022-03-04 20:53:41 +09:00 |
Masaaki Goshima
|
58b524e43e
|
Merge pull request #338 from orisano/fix/#337
fix: avoid reading the next character in buffer to nul consideration
|
2022-03-04 20:51:40 +09:00 |
Nao Yonashiro
|
accf52d695
|
fix: incorrect handling on skipValue
close #340
|
2022-03-04 20:01:05 +09:00 |
Nao Yonashiro
|
81519c48d8
|
fix: avoid reading the next character in buffer to nul consideration
fix #337
|
2022-02-22 19:22:48 +09:00 |
Nao Yonashiro
|
4bd7d2399f
|
feat: improve performance when a payload contains escape sequence
|
2022-02-12 17:25:52 +09:00 |
Nao Yonashiro
|
c05e1e23ee
|
fix: panic when decoding time.Time with context
close #327
|
2022-01-26 01:02:27 +09:00 |
Masaaki Goshima
|
0940ff3198
|
Fix the case where the embedded field is at the end
|
2022-01-20 23:23:51 +09:00 |
IncSW
|
4d0a50640b
|
fix omitempty string is nil for marshaler
|
2022-01-18 13:38:44 +03:00 |
Masaaki Goshima
|
50b494bc5f
|
Fix logic of removing struct field for decoder
|
2022-01-14 20:18:18 +09:00 |
Masaaki Goshima
|
b5a50f75eb
|
Add invalid decoder to delay type error judgment at decode
|
2022-01-13 18:09:48 +09:00 |
Masaaki Goshima
|
f810369f2d
|
Fix encoding of MarshalText operation with head offset
|
2022-01-11 15:11:17 +09:00 |
Masaaki Goshima
|
acc66cf172
|
Fix MarshalIndent for interface type
|
2022-01-04 22:30:16 +09:00 |
Masaaki Goshima
|
6af83d9bdd
|
Refactor encoder
|
2022-01-03 22:42:04 +09:00 |
Masaaki Goshima
|
89bcc3be86
|
Supports dynamic filtering of struct fields
|
2022-01-03 12:33:51 +09:00 |
Masaaki Goshima
|
2a0ee24e6e
|
Add encoding option for performance
|
2021-12-30 11:54:29 +09:00 |
Masaaki Goshima
|
1bb8b16200
|
Optimize variables
|
2021-12-27 22:40:43 +09:00 |
Masaaki Goshima
|
2d022aa037
|
Remove unnecessary codes
|
2021-12-27 22:28:25 +09:00 |
Masaaki Goshima
|
0d18c6d7ce
|
Optimize encoding path for escaped string
|
2021-12-27 21:48:21 +09:00 |
Masaaki Goshima
|
5418c49bcf
|
Refactor opcode fields
|
2021-12-27 17:50:55 +09:00 |
Masaaki Goshima
|
c220d90e4c
|
Use MapItem object in Mapslice directly
|
2021-12-27 12:18:30 +09:00 |
Masaaki Goshima
|
657973a17e
|
Ignore lint error for mapIter
|
2021-12-27 11:33:17 +09:00 |
Masaaki Goshima
|
d8aa8348f4
|
Improve map encoding performance
|
2021-12-27 11:14:42 +09:00 |
Masaaki Goshima
|
918e816ae4
|
Fix conversion of operation for PtrHead to Head
|
2021-12-05 11:38:56 +09:00 |
Masaaki Goshima
|
f6b4e43f6a
|
Refactor encoder's vm
|
2021-11-28 21:46:32 +09:00 |
Masaaki Goshima
|
e4c458f34c
|
Remove StructAnonymousEnd operation
|
2021-11-28 12:53:18 +09:00 |
Masaaki Goshima
|
be85245267
|
Enable StructEnd optimization for ptr type
|
2021-11-28 12:35:20 +09:00 |
Masaaki Goshima
|
ea19d1161a
|
Fix error by linter
|
2021-11-28 02:48:01 +09:00 |
Masaaki Goshima
|
b5e1478450
|
Refactor compiler for encoder
- Introduced a two phase compilation to calculate Opcode index accurately
- Fix display number of Opcode
- Improve memory footprint for Opcode
|
2021-11-28 02:14:57 +09:00 |
Masaaki Goshima
|
86a671f3bb
|
Fix embedded field conflict behavior
|
2021-11-18 19:51:29 +09:00 |
Masaaki Goshima
|
d7372a47cd
|
Fix conversion from pointer to uint64
|
2021-10-14 15:00:28 +09:00 |
Nao Yonashiro
|
0065357ebb
|
fix: to avoid panic on untyped nil #290
fix #290
|
2021-09-27 10:55:37 +09:00 |
Masaaki Goshima
|
559d70d706
|
Fix encoding of empty struct interface type
|
2021-09-01 11:41:33 +09:00 |
Masaaki Goshima
|
4f058093a3
|
Merge pull request #283 from goccy/feature/fix-282
Fix mapassign_faststr for indirect struct type
|
2021-08-31 13:03:52 +09:00 |
Masaaki Goshima
|
d494b03b74
|
Fix decoding of map type that contains indirect element type
|
2021-08-31 12:21:08 +09:00 |
Masaaki Goshima
|
97c3cf6c55
|
Fix test
|
2021-08-30 13:11:44 +09:00 |
Masaaki Goshima
|
92d8dcd13b
|
Fix encoding of not empty interface type
|
2021-08-30 13:03:14 +09:00 |
Masaaki Goshima
|
284c108638
|
Fix mapassign
|
2021-08-30 11:40:10 +09:00 |
Nao Yonashiro
|
e8637832dd
|
style: gofmt
|
2021-08-25 11:25:00 +09:00 |
Nao Yonashiro
|
ae9148555a
|
Merge branch 'master' into fix-issue-278
|
2021-08-25 11:23:59 +09:00 |
Nao Yonashiro
|
ac41fbec94
|
fix: fixed buffer length bug on string decoder
close #278
|
2021-08-25 07:23:34 +09:00 |
Nao Yonashiro
|
e1e6c41c66
|
fix: fixed invalid utf8 on stream decoder
|
2021-08-25 06:15:15 +09:00 |
Masaaki Goshima
|
68022098ad
|
Merge pull request #277 from goccy/feature/improve-error-message
Improve error message
|
2021-08-13 17:29:27 +09:00 |
Masaaki Goshima
|
08c2e1abef
|
Improve error message
|
2021-08-13 17:05:07 +09:00 |
Masaaki Goshima
|
bf35de8f91
|
Fix assign nil slice value
|
2021-08-13 15:49:53 +09:00 |
Masaaki Goshima
|
ce8be46a39
|
Merge pull request #273 from goccy/feature/fix-decoding-binary-type
Fix decoding of binary type with escaped char
|
2021-08-12 14:42:08 +09:00 |
Masaaki Goshima
|
75a6ad40b9
|
Fix decoding of binary type with escaped char
|
2021-08-12 13:52:00 +09:00 |
Masaaki Goshima
|
104829e78f
|
Fix encoding of embedded struct that isn't first field
|
2021-08-12 13:03:34 +09:00 |
peterlimg
|
91e691adc5
|
Fix decodeEscapeString err
`p` was not updated after the `stream.buf` is reallocated
|
2021-07-27 21:53:59 +10:00 |
peterlimg
|
ad245e5323
|
Fix incorrect indent
|
2021-07-22 17:22:07 +10:00 |
peterlimg
|
a95c5abe6c
|
Fix indent issue for embed struct with tag
|
2021-07-22 14:54:11 +10:00 |
peterlimg
|
ac9a7dd8e3
|
Fix encode issue for embed struct with tag
|
2021-07-20 23:14:26 +10:00 |
Masaaki Goshima
|
902856929d
|
Fix indirect layout
|
2021-07-05 20:30:35 +09:00 |
Masaaki Goshima
|
1400b498ab
|
Fix encoding of pointer type in empty interface
|
2021-06-29 11:35:37 +09:00 |
Masaaki Goshima
|
66bf979e47
|
Improve encoding performance for empty interface type
|
2021-06-26 15:49:13 +09:00 |
Masaaki Goshima
|
3829400241
|
Merge pull request #259 from goccy/feature/improve-encoding-interface-perf
Improve encoding performance of empty interface type
|
2021-06-25 23:06:45 +09:00 |
Masaaki Goshima
|
12e4bdc2f2
|
Fix dump of opcode
|
2021-06-25 22:55:00 +09:00 |
Masaaki Goshima
|
f93d82dee6
|
Fix storeIndent
|
2021-06-25 22:27:00 +09:00 |
Masaaki Goshima
|
994dc9ea9d
|
Fix encoding of empty interface type
|
2021-06-25 20:17:12 +09:00 |
Preetham Narayanareddy
|
2aeb1769a2
|
Fix decoding of []byte type
|
2021-06-24 14:42:26 -07:00 |
Kiraub
|
e94f0cd362
|
Merge branch 'goccy:master' into master
|
2021-06-23 17:44:36 +02:00 |
ebauer
|
5f0b34250c
|
funcDecoder: handle cases of value being true or false
|
2021-06-23 15:51:42 +02:00 |
ebauer
|
a7d041a3d4
|
gofmt -s
|
2021-06-23 15:22:40 +02:00 |
ebauer
|
585ce46b31
|
add func decoder
|
2021-06-23 14:22:24 +02:00 |
Masaaki Goshima
|
80c460c74b
|
Fix error by linter
|
2021-06-23 17:42:30 +09:00 |
Masaaki Goshima
|
ff12fbbe9b
|
Use mapassign_faststr to decode map whose key type is string
|
2021-06-23 17:23:09 +09:00 |
IncSW
|
9a2f108208
|
fix array stream decoder
|
2021-06-15 19:05:12 +03:00 |
IncSW
|
1037421a83
|
fix error when unmarshal empty array
|
2021-06-15 18:19:39 +03:00 |
Masaaki Goshima
|
5c22860385
|
Merge pull request #248 from goccy/feature/context
Support context for MarshalJSON and UnmarshalJSON
|
2021-06-12 22:51:57 +09:00 |
Masaaki Goshima
|
b972a9bab3
|
Fix indent num
|
2021-06-12 22:38:52 +09:00 |
Masaaki Goshima
|
56e5d7a457
|
Fix index number about length for recursive type
|
2021-06-12 22:02:03 +09:00 |
Masaaki Goshima
|
79ccab759f
|
Fix indent num contains recursive type
|
2021-06-12 22:01:45 +09:00 |
Masaaki Goshima
|
cd7fb7392f
|
Support context for MarshalJSON and UnmarshalJSON
|
2021-06-12 17:06:26 +09:00 |
Masaaki Goshima
|
edd09e7470
|
Fix encoding of using empty interface as map key
|
2021-06-06 20:39:49 +09:00 |
Masaaki Goshima
|
5c39787fbd
|
Enable FirstWin option for stream decoder
|
2021-06-06 11:24:56 +09:00 |
Masaaki Goshima
|
34b7053412
|
Fix decoder option flag
|
2021-06-06 11:11:04 +09:00 |
Masaaki Goshima
|
a69176cd30
|
Fix decoder
|
2021-06-06 11:01:55 +09:00 |
Masaaki Goshima
|
3c0e1b5e8c
|
Fix stream buffer length
|
2021-06-06 10:52:55 +09:00 |
Masaaki Goshima
|
5e281e340f
|
Fix decoder
|
2021-06-05 16:00:17 +09:00 |
Masaaki Goshima
|
cbda08a525
|
Add DecodeFieldPriorityFirstWin option
|
2021-06-05 13:00:26 +09:00 |
Masaaki Goshima
|
b074c98070
|
Use RuntimeContext
|
2021-06-05 01:08:27 +09:00 |
Masaaki Goshima
|
f0b4077914
|
Add DecodeOption
|
2021-06-05 00:27:02 +09:00 |
Masaaki Goshima
|
e7b7118f4e
|
Fix skipWhiteSpace for stream decoder
|
2021-06-04 14:59:43 +09:00 |
Masaaki Goshima
|
a973797e61
|
Fix init buffer
|
2021-06-04 12:41:18 +09:00 |
Masaaki Goshima
|
c35c3242b6
|
Merge branch 'master' of github.com:goccy/go-json into feature/refactor-decoder
|
2021-06-03 19:38:01 +09:00 |
Masaaki Goshima
|
c41c158a56
|
Fix error by linter
|
2021-06-03 19:10:17 +09:00 |
Masaaki Goshima
|
de4e97ed09
|
Remove unnecessary prefix
|
2021-06-03 18:57:41 +09:00 |
Masaaki Goshima
|
5a024ca2f1
|
Fix package layout for decoder
|
2021-06-03 18:49:01 +09:00 |
Masaaki Goshima
|
544e731166
|
Fix value of totalLength for encoding
|
2021-06-02 19:02:36 +09:00 |
Masaaki Goshima
|
7155d2e437
|
Fix error by linter
|
2021-06-01 15:19:09 +09:00 |
Masaaki Goshima
|
d495f67045
|
Fix color format
|
2021-06-01 15:10:28 +09:00 |
Masaaki Goshima
|
4e2a9c06ef
|
Manage option flags as bit variable
|
2021-06-01 13:40:15 +09:00 |
Masaaki Goshima
|
4c19a845d9
|
Support colored JSON
|
2021-06-01 03:09:47 +09:00 |
Masaaki Goshima
|
c294f01ac5
|
Add Colorize option
|
2021-06-01 01:57:40 +09:00 |
Masaaki Goshima
|
69cca05981
|
Pass RuntimeContext to the first argument of all append functions
|
2021-06-01 01:36:30 +09:00 |
Masaaki Goshima
|
11437c8556
|
Refactor escape string
|
2021-06-01 01:25:05 +09:00 |
Masaaki Goshima
|
a56c080959
|
Refactor encode option
|
2021-05-31 22:25:33 +09:00 |
Masaaki Goshima
|
7cf15fc56c
|
Fix opcode layout
- Adjust memory layout of the opcode to 128 bytes in a 64-bit environment
|
2021-05-29 14:47:18 +09:00 |