]> Cypherpunks repositories - gostls13.git/commit
compress/flate: cancel redundant operations
authorHeisenberg <lziqiang1@gmail.com>
Wed, 22 Jul 2020 00:59:30 +0000 (08:59 +0800)
committerGopher Robot <gobot@golang.org>
Sun, 8 May 2022 17:05:16 +0000 (17:05 +0000)
commitb8d55a7604aaffb9645ba1fcff9ea2c84697f7d6
tree379f45b3ade77ac4c3861da6d3b82571a8c0795d
parenteed77574d029e8c8426195bc9e7267462f568a8a
compress/flate: cancel redundant operations

The assignment operation in the program seems to be redundant, the first judgment will continue to overwrite the previous value.
The subsequent slicing operation will cut all the values without frequency.

Change-Id: Id59fc36dd5bacfde881edaf0d9c1af5348286611
Reviewed-on: https://go-review.googlesource.com/c/go/+/244157
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Joe Tsai <joetsai@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
src/compress/flate/huffman_code.go