Skip to content

Performance issues: runtime.mallocgc is eating CPU #506

Open
@jvegaseg

Description

@jvegaseg

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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions