This PR updates the json library to improve performance of encoding during the hot path. The changes are a drop in replacement using the sonic library.
It also updates the method to retrieve the table column in the translator to avoid the memory allocation.
This PR updates the json library to improve performance of encoding during the hot path. The changes are a drop in replacement using the sonic library.
It also updates the method to retrieve the table column in the translator to avoid the memory allocation.
Relates to https://github.com/xataio/xata/pull/5004, where benchmarks were performed under load comparing go-json and sonic libraries:
Use go-json library
Use sonic library