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
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,
The text was updated successfully, but these errors were encountered:
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,
The text was updated successfully, but these errors were encountered: