Ugorji Nwoke
|
a70535d849
codec: generalize DecodeOptions:RawToString flag (for all encodings)
|
6 years ago |
Ugorji Nwoke
|
ee1426cffe
codec: make tracking of #calls only applicable to types which must Release() when done
|
7 years ago |
Ugorji Nwoke
|
23876e7a59
codec: do not pool decNaked anymore - make it smaller and part of Decoder
|
7 years ago |
Ugorji Nwoke
|
7c42fb4a28
codec: remove decNakedContainers - it serves no value towards reducing allocation
|
7 years ago |
Ugorji Nwoke
|
cb0f4b5eec
codec: refactor: rename (En|De)coder.Close() -> Release(), and option DoNotClose -> ExplicitRelease
|
7 years ago |
Ugorji Nwoke
|
24e6c72677
codec: refactor Selfer check outside switch (encode/decode)
|
7 years ago |
Ugorji Nwoke
|
688a245586
codec: make decNakedContainers lazily initialized (on demand, as needed)
|
7 years ago |
Ugorji Nwoke
|
6bfa3bf159
codec: do not pool codecFn helper - make it part of BasicHandle instead
|
7 years ago |
Ugorji Nwoke
|
856da096db
codec: implicitly call Close() by default
|
7 years ago |
Ugorji Nwoke
|
f6bb70d25a
codec: shared pool for large values used in Encode/Decode
|
7 years ago |
Ugorji Nwoke
|
4f1af4e05b
codec: bytesDecReader.read can only err with io.EOF (never io.ErrUnexpectedEOF)
|
7 years ago |
Ugorji Nwoke
|
6c173b2436
codec: use uint indices for array element and slicing to eliminate the x >= 0 bounds check, and more inlining
|
7 years ago |
Ugorji Nwoke
|
e531a5003d
codec: refactor to afford bounds check elimination
|
7 years ago |
Ugorji Nwoke
|
3bfe5b406a
codec: more support for mid-stack inlining support - gives best performance with -l=4
|
7 years ago |
Ugorji Nwoke
|
7d13b37dbe
codec: bufioDecReader: do not implement io.(ByteScanner|Reader) - its unnecessary
|
7 years ago |
Ugorji Nwoke
|
ef9792b2e7
codec: bufioDecReader.ReadByte: special case for common path where there is buffered data
|
7 years ago |
Ugorji Nwoke
|
f8fe4a359c
codec: set defEncByteBufSize=1024, used as length of input []byte or io.Writer buffer
|
7 years ago |
Ugorji Nwoke
|
16061014c5
codec: document concurrency guarantees and fix analyze script warnings
|
7 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
|
7 years ago |
Ugorji Nwoke
|
52c929c5b8
codec: defer call with closure giving weird errors - revert
|
7 years ago |
Ugorji Nwoke
|
f623015d6c
codec: put defer calls in closure - as runtime optimizes defer with no params
|
7 years ago |
Ugorji Nwoke
|
92b7607989
codec: refactor for better inlining, improve intf for string encoding, and fix some vet/staticcheck/false-sharing concerns
|
7 years ago |
Ugorji Nwoke
|
61ada7950e
codec: support MaxDepth within swallow()
|
7 years ago |
Ugorji Nwoke
|
70bcc61d9a
codec: limit depth of nested structures
|
7 years ago |
Ugorji Nwoke
|
10d0049acb
codec: limit size of bytes read to MaxInitLen (specifically for extensions)
|
7 years ago |
Ugorji Nwoke
|
9d693b80ac
codec: Limit initial capacity of new maps to the MaxInitLen
|
7 years ago |
Ugorji Nwoke
|
394377d16c
codec: clean up some comments in decode.go
|
7 years ago |
Ugorji Nwoke
|
587a7e6ca2
codec: arrays are decodeable iff they are addressable
|
7 years ago |
Ugorji Nwoke
|
8bdcf85654
codec: clarify doc that decode updates in-place, and how to disable that
|
7 years ago |
Ugorji Nwoke
|
a65ca39637
codec: use types for encode and decode errors, which expose underlying error
|
7 years ago |