Open
Description
We have developed a proxy and it is running well but it consumes a lot of CPU.
We use sync.Pool in order to preallocate what we need, but at then end, we call to the funcion BuildSimpleTextResultset which is who eats the CPU (I suppose because it is using a lot of slice appends).
Using perf tool, it reports that runtime.mallocgc is eating mayor part of the CPU.
Is there any way to get better performance? Have you plan to use sync.Pool or another way of preallocated memory?
Regards,
Metadata
Metadata
Assignees
Labels
No labels