audio: preallocate reverse sounds (~5% speed up).
Also: - use ranges everywhere - optimize makeWhiteNoise a bit Before and after: captcha.BenchmarkNewAudio 50 32128580 ns/op captcha.BenchmarkNewAudio 50 30436940 ns/op
parent
6ca6c386
Please register or sign in to comment