Reduce the amount of recursive walks of the data structure
Opened this issue · 0 comments
callFEELD commented
The Encode function inside the Encoder will run twice over the given data structure.
The first walkover is at line 44 in Encoder.go
err, length := countByteLen(data)
The second walkover is at the encoding part.
Check if there is a way to have the memory allocation at a minimum (currently only 1 allocation) and reduce the recursive walk over to 1.