Skip to content

Commit

Permalink
Revert "Minor performance improvement"
Browse files Browse the repository at this point in the history
This reverts commit c622797.
  • Loading branch information
NeRdTheNed committed Oct 10, 2023
1 parent c622797 commit 5e9bf99
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ private static DeflateBlockHuffman optimiseBlockHelper(DeflateBlockHuffman block
private static final boolean[] TRUE_FALSE = {true, false};
private static final boolean[] FALSE_TRUE = {false, true};
private static final boolean[] FALSE = {false};
private static final boolean[] TRUE = {true};
private static final boolean[] ALT_8_ARR = TRY_ALT_8 ? new boolean[] {DEFAULT_8, ALT_8} : new boolean[] {DEFAULT_8};

private static void addOptimisedRecoded(Consumer<? super Pair<? extends DeflateBlockHuffman, String>> callback, DeflateBlockHuffman toOptimise, String baseName, long position) {
Expand All @@ -281,7 +280,7 @@ private static void addOptimisedRecoded(Consumer<? super Pair<? extends DeflateB
for (final boolean noRepZeros : FALSE_TRUE) {
for (final boolean prune : FALSE_TRUE) {
for (final boolean noRep : noRepZeros ? FALSE : FALSE_TRUE) {
for (final boolean noZRep : noRepZeros ? TRUE : FALSE_TRUE) {
for (final boolean noZRep : FALSE_TRUE) {
for (final boolean noZRep2 : FALSE_TRUE) {
for (final boolean ohh : TRUE_FALSE) {
if (ohh) {
Expand Down

0 comments on commit 5e9bf99

Please sign in to comment.