Re: [go-nuts] Memory Leak in bytes.Buffer String() method

2020-08-30 Thread Ian Lance Taylor
On Sun, Aug 30, 2020 at 8:25 AM Sarath Prabath Redlapalli Jaya wrote: > > Hi, we've been observing high memory usage in the following code > https://github.com/Masterminds/squirrel/blob/master/placeholder.go#L113 > > We measured from pprof of heap > > (pprof) top20 > > Showing nodes accounting for

[go-nuts] Memory Leak in bytes.Buffer String() method

2020-08-30 Thread Sarath Prabath Redlapalli Jaya
Hi, we've been observing high memory usage in the following code https://github.com/Masterminds/squirrel/blob/master/placeholder.go#L113 We measured from pprof of heap (pprof) top20 Showing nodes accounting for 360.07MB, 91.31% of 394.32MB total Dropped 142 nodes (cum <= 1.97MB) Showing top 20