You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Existing serializer only have one method WriteInt, which makes it thread safe, since the method use nothing from the object, but this introduce the problem when we want to write multiple series
A better implementation might be
WriteOpen() { buf.Write("[") }
WriteInt( .....
WriteDouble( ....
WriteClose() { buf.Write("]") }
Reader() // or maybe we can make it a reader closer
Reset()
deal with comma in json array
one way is to use a flag to indicate if this is the first element in array
a better would be always add comma, and remove the last one, when finalize
might use truncate
The text was updated successfully, but these errors were encountered:
- change usage in http worker
- add bool flag for dealing with `,` between array elements in json, if
bytes.Buffer allow go back some char, the code would be more efficient,
might use truncate
- add interface check for all three serializers, influxdb, kairosdb,
xephon-k
Existing serializer only have one method
WriteInt
, which makes it thread safe, since the method use nothing from the object, but this introduce the problem when we want to write multiple seriesA better implementation might be
truncate
The text was updated successfully, but these errors were encountered: