Add another AddressDecoder debug message
This commit is contained in:
parent
fb2ad11347
commit
72bd89a2af
@ -123,6 +123,8 @@ object AddressDecoder
|
|||||||
val candidates = bits.map { bit =>
|
val candidates = bits.map { bit =>
|
||||||
val result = partitionPartitions(partitions, bit)
|
val result = partitionPartitions(partitions, bit)
|
||||||
val score = bitScore(result)
|
val score = bitScore(result)
|
||||||
|
if (debug)
|
||||||
|
println(" For bit %x, %s".format(bit, score.toString))
|
||||||
(score, bit, result)
|
(score, bit, result)
|
||||||
}
|
}
|
||||||
val (bestScore, bestBit, bestPartitions) = candidates.min(Ordering.by[(Seq[Int], BigInt, Partitions), Iterable[Int]](_._1.toIterable))
|
val (bestScore, bestBit, bestPartitions) = candidates.min(Ordering.by[(Seq[Int], BigInt, Partitions), Iterable[Int]](_._1.toIterable))
|
||||||
|
Loading…
Reference in New Issue
Block a user