Skip to content

Commit

Permalink
frame: Evaluate and remove TODO about potential optimization.
Browse files Browse the repository at this point in the history
It did not improve the performance of Frame.Hash.
  • Loading branch information
mewmew committed Feb 11, 2016
1 parent d675e0a commit dd4d1cd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion frame/frame.go
Original file line number Diff line number Diff line change
Expand Up @@ -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++ {
Expand Down

0 comments on commit dd4d1cd

Please sign in to comment.