Open splace opened 8 years ago
when i generate with this;
img, err := waveform.Generate(out,waveform.Resolution(8000),bColor,fColor)
with a wave file with 8k samples per second, its fine, using 6MB memory in 0.01sec, but
img, err := waveform.Generate(out,waveform.Resolution(10000),bColor,fColor)
(ie when resolution slightly higher than the sample rate, )
i had to kill the process at 6GB mem usage.
when i generate with this;
img, err := waveform.Generate(out,waveform.Resolution(8000),bColor,fColor)
with a wave file with 8k samples per second, its fine, using 6MB memory in 0.01sec, but
img, err := waveform.Generate(out,waveform.Resolution(10000),bColor,fColor)
(ie when resolution slightly higher than the sample rate, )
i had to kill the process at 6GB mem usage.