From dd4d1cd9dd029fc4230792e45d101ea58b1e56c6 Mon Sep 17 00:00:00 2001 From: mewmew Date: Thu, 11 Feb 2016 23:26:32 +0100 Subject: [PATCH] frame: Evaluate and remove TODO about potential optimization. It did not improve the performance of Frame.Hash. --- frame/frame.go | 1 - 1 file changed, 1 deletion(-) diff --git a/frame/frame.go b/frame/frame.go index b54d1ae..7ff7316 100644 --- a/frame/frame.go +++ b/frame/frame.go @@ -151,7 +151,6 @@ func (frame *Frame) Parse() error { // Note: The audio samples of the frame must be decoded before calling Hash. func (frame *Frame) Hash(md5sum hash.Hash) { // Write decoded samples to a running MD5 hash. - // TODO(u): Make buf of size md5.BlockSize if it increases performance. bps := frame.BitsPerSample var buf [3]byte for i := 0; i < int(frame.BlockSize); i++ {