aschult5 / actiontime

A Golang library for tracking action time averages
MIT License
0 stars 1 forks source link

Investigate removing string <-> []byte conversions #37

Closed aschult5 closed 4 years ago

aschult5 commented 4 years ago

The conversions make copies each time ( #9 ).

Performance should be compared before and after any change.

aschult5 commented 4 years ago

At the very least, it should be done outside of any critical section

aschult5 commented 4 years ago

They are converted once, outside critical sections. I did not find a method to convert directly from a struct to a json-encoded string.