Ugorji Nwoke
|
ee1426cffe
codec: make tracking of #calls only applicable to types which must Release() when done
|
5 years ago |
Ugorji Nwoke
|
feac831543
codec: encapsulate sync.Pool handling (better code)
|
5 years ago |
Ugorji Nwoke
|
772ced7fd4
codec: fix lint warning - let all BasicHandle methods use same "x" as receiver name
|
5 years ago |
Ugorji Nwoke
|
23876e7a59
codec: do not pool decNaked anymore - make it smaller and part of Decoder
|
5 years ago |
Ugorji Nwoke
|
cb0f4b5eec
codec: refactor: rename (En|De)coder.Close() -> Release(), and option DoNotClose -> ExplicitRelease
|
5 years ago |
Ugorji Nwoke
|
6bfa3bf159
codec: do not pool codecFn helper - make it part of BasicHandle instead
|
5 years ago |
Ugorji Nwoke
|
856da096db
codec: implicitly call Close() by default
|
5 years ago |
Ugorji Nwoke
|
f6bb70d25a
codec: shared pool for large values used in Encode/Decode
|
5 years ago |
Ugorji Nwoke
|
66da5d561e
codec: sort.Interface implementations use uint for indexing
|
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
|
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
|
92b7607989
codec: refactor for better inlining, improve intf for string encoding, and fix some vet/staticcheck/false-sharing concerns
|
5 years ago |
Ugorji Nwoke
|
405bbdfe11
codec: document that Selfer should not blindly call (Must)?(En|De)code
|
6 years ago |
Ugorji Nwoke
|
ee2199668c
codec: rpc: use lock free mechanisms to track the close status.
|
6 years ago |
Ugorji Nwoke
|
99ea80c8b1
codec: change signature to MissingFielder interface
|
6 years ago |
Ugorji Nwoke
|
037e5aa7ef
codec: provide TimeNotBuiltin option to allow time.Time be handled in custom way
|
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
|
e789f6e370
codec: codecFner.reset should reset all typeInfos (in case *TypeInfos changes)
|
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
|
eeb0478a81
codec: if json and the struct field name (or encode name) is ascii and alphanumeric, just write it out
|
6 years ago |
Ugorji Nwoke
|
6f05ff1f01
codec: En|Decode should have at most 1 defer call
|
6 years ago |
Ugorji Nwoke
|
d2b24cf3d3
codec: Document that the first set of bytes of any value MUST NOT represent nil.
|
6 years ago |
Ugorji Nwoke
|
9831f2c3ac
codec: remove double-indirection and fix race in Copy-On-Write during TypeInfo lookup
|
6 years ago |
Ugorji Nwoke
|
d41456c8f4
codec: refactor codecgen, optimize isEmptyValue and cache more static type info
|
6 years ago |
Ugorji Nwoke
|
f2ec36a678
codec: Optimized struct field index lookup during decode, and loading typeInfos
|
6 years ago |
Ugorji Nwoke
|
c93fc2cdd1
codec: refactor struct field loading and data structures, for performance and memory friendliness
|
6 years ago |