Ugorji Nwoke
|
049e534137
codec: refactor decode to move decArrayCannotExpand to dedicated function
|
5 years ago |
Ugorji Nwoke
|
dffca6f219
codec: clean up comments in template files
|
5 years ago |
Ugorji Nwoke
|
2019b5eec8
codec: remove EncodeAsis and optimize access to jsonEncDriver
|
5 years ago |
Ugorji Nwoke
|
31766e6012
codec: StringToRaw should only be checked in the Handle
|
5 years ago |
Ugorji Nwoke
|
b4c79eef6c
codec: fastpath: refactor uncommon arraycannotexpand into its own function
|
5 years ago |
Ugorji Nwoke
|
6c2e17b36f
codec: fix decoding into array with length smaller than stream
|
5 years ago |
Ugorji Nwoke
|
ffda9d4fba
codec: streamline nil decoding: nil means zero value consistently
|
5 years ago |
Ugorji Nwoke
|
a2a200a106
codec: streamline encoding of nil values
|
5 years ago |
Ugorji Nwoke
|
19cb75f56d
codec: added mapSet and mapDelete helpers (safe/unsafe variants)
|
5 years ago |
Ugorji Nwoke
|
79e5e7c841
codec: streamline and optimize fast-path functions
|
5 years ago |
Ugorji Nwoke
|
86ce10f272
codec: misc refactoring, clean up and optimizations
|
5 years ago |
Ugorji Nwoke
|
eb5e2717b6
codec: fast-path: optimize: remove unnecessary local variables
|
5 years ago |
Ugorji Nwoke
|
a2154fa654
codec: do not generate fast-path for uncommon types, and generate sort.Sort wrappers
|
5 years ago |
Ugorji Nwoke
|
aa2c01e021
codec: introduce EncodeOptions:StringToRaw flag to control string encoding
|
5 years ago |
Ugorji Nwoke
|
5922e8c83c
codec: fast-path: pull out mapbyslice error message into a global constant string
|
6 years ago |
Ugorji Nwoke
|
66da5d561e
codec: sort.Interface implementations use uint for indexing
|
6 years ago |
Ugorji Nwoke
|
6c173b2436
codec: use uint indices for array element and slicing to eliminate the x >= 0 bounds check, and more inlining
|
6 years ago |
Ugorji Nwoke
|
e531a5003d
codec: refactor to afford bounds check elimination
|
6 years ago |
Ugorji Nwoke
|
92b7607989
codec: refactor for better inlining, improve intf for string encoding, and fix some vet/staticcheck/false-sharing concerns
|
6 years ago |
Ugorji Nwoke
|
70bcc61d9a
codec: limit depth of nested structures
|
6 years ago |
Ugorji Nwoke
|
6e9891a451
codec: clean up, improved symbol handling and numeric overflow support
|
7 years ago |
Ugorji Nwoke
|
ef9d3323cc
codec: fast-path: ensure we decode fully and copy slice contents if possible, but never modify slice if nil and canChange=false
|
7 years ago |
Ugorji Nwoke
|
bdf09c214e
codec: Add method for encoding/decoding a container containing uint8's.
|
7 years ago |
Ugorji Nwoke
|
5a66da2e74
codec: fix suggestions raised by golint -min_confidence 0.9, misspellings and ineffassign
|
7 years ago |
Ugorji Nwoke
|
dfe41753fe
codec: fast-path: when decoding slices, check if a nil value is in stream
|
7 years ago |
Ugorji Nwoke
|
427fecfaa5
codec: update comment in generated code per accepted proposal: https://golang.org/s/generatedcode
|
7 years ago |
Ugorji Nwoke
|
792f4ab7b3
codec: remove recognized-rtid logic
|
7 years ago |
Ugorji Nwoke
|
3c86213f83
codec: test: add tests for encoding, decoding and zero'ing scalars and maps/slices containing them.
|
7 years ago |
Ugorji Nwoke
|
b039683517
codec: clean up recognizedRtid support, add more tests and update testing TODO
|
7 years ago |
Ugorji Nwoke
|
16373bd701
codec: test: add tests for symbols, and nil or 0-length fast-path slices and maps
|
7 years ago |