Ugorji Nwoke
|
f6bb70d25a
codec: shared pool for large values used in Encode/Decode
|
5 years ago |
Ugorji Nwoke
|
4f1af4e05b
codec: bytesDecReader.read can only err with io.EOF (never io.ErrUnexpectedEOF)
|
5 years ago |
Ugorji Nwoke
|
6c173b2436
codec: use uint indices for array element and slicing to eliminate the x >= 0 bounds check, and more inlining
|
5 years ago |
Ugorji Nwoke
|
e531a5003d
codec: refactor to afford bounds check elimination
|
5 years ago |
Ugorji Nwoke
|
3bfe5b406a
codec: more support for mid-stack inlining support - gives best performance with -l=4
|
5 years ago |
Ugorji Nwoke
|
7d13b37dbe
codec: bufioDecReader: do not implement io.(ByteScanner|Reader) - its unnecessary
|
5 years ago |
Ugorji Nwoke
|
ef9792b2e7
codec: bufioDecReader.ReadByte: special case for common path where there is buffered data
|
5 years ago |
Ugorji Nwoke
|
f8fe4a359c
codec: set defEncByteBufSize=1024, used as length of input []byte or io.Writer buffer
|
5 years ago |
Ugorji Nwoke
|
16061014c5
codec: document concurrency guarantees and fix analyze script warnings
|
5 years ago |
Ugorji Nwoke
|
ce1d126566
codec: misc fixes - handle error from io.Reader.Read, fix MissingFielder support, refactor for better mid-stack inlining, use custom bufio.Writer impl, etc
|
5 years ago |
Ugorji Nwoke
|
52c929c5b8
codec: defer call with closure giving weird errors - revert
|
5 years ago |
Ugorji Nwoke
|
f623015d6c
codec: put defer calls in closure - as runtime optimizes defer with no params
|
5 years ago |
Ugorji Nwoke
|
92b7607989
codec: refactor for better inlining, improve intf for string encoding, and fix some vet/staticcheck/false-sharing concerns
|
5 years ago |
Ugorji Nwoke
|
61ada7950e
codec: support MaxDepth within swallow()
|
6 years ago |
Ugorji Nwoke
|
70bcc61d9a
codec: limit depth of nested structures
|
6 years ago |
Ugorji Nwoke
|
10d0049acb
codec: limit size of bytes read to MaxInitLen (specifically for extensions)
|
6 years ago |
Ugorji Nwoke
|
9d693b80ac
codec: Limit initial capacity of new maps to the MaxInitLen
|
6 years ago |
Ugorji Nwoke
|
394377d16c
codec: clean up some comments in decode.go
|
6 years ago |
Ugorji Nwoke
|
587a7e6ca2
codec: arrays are decodeable iff they are addressable
|
6 years ago |
Ugorji Nwoke
|
8bdcf85654
codec: clarify doc that decode updates in-place, and how to disable that
|
6 years ago |
Ugorji Nwoke
|
a65ca39637
codec: use types for encode and decode errors, which expose underlying error
|
6 years ago |
Ugorji Nwoke
|
e5646b99d2
codec: support ability to preserve missing fields
|
6 years ago |
Ugorji Nwoke
|
0a18df59e4
codec: use decReader and encWriter interfaces (not the struct decReaderSwitch/encWriterSwitch)
|
6 years ago |
Ugorji Nwoke
|
1322318ca6
codec: set up codebase so as to take advantage of mid-stack inlining support
|
6 years ago |
Ugorji Nwoke
|
f3cacc17c8
codec: expose Number of Bytes Read by the Decoder
|
6 years ago |
Ugorji Nwoke
|
6f05ff1f01
codec: En|Decode should have at most 1 defer call
|
6 years ago |
Ugorji Nwoke
|
9af07b2035
codec: streamline chan encoding/decoding
|
6 years ago |
Ugorji Nwoke
|
97ffc5827b
codec: update that mid-stack linling is expected in go 1.11 development cycle
|
6 years ago |
Ugorji Nwoke
|
aada210893
codec: improved error messages for all formats during decode
|
6 years ago |
Ugorji Nwoke
|
d41456c8f4
codec: refactor codecgen, optimize isEmptyValue and cache more static type info
|
6 years ago |