diff options
| author | Adrien Hopkins <adrien.p.hopkins@gmail.com> | 2023-09-05 12:36:52 -0500 |
|---|---|---|
| committer | Adrien Hopkins <adrien.p.hopkins@gmail.com> | 2023-09-05 12:58:43 -0500 |
| commit | 55981e7bb325f5dc84384e90c76a7f29005d62f8 (patch) | |
| tree | e1786a0d98f3a36e2a8c669e472d22ab246eb3b9 /radix_info.go | |
| parent | 8bb4a3b74712b16954b93ae18f4d3dcd5bea063b (diff) | |
Treat radices >2^16 as large unless -l set
These radices are large enough that:
- there is no reason to use them as actual radices
- calculating them takes a lot of time!
Therefore, the exact MTC and radix type shouldn't be calculated by
default. If you want to take the time, you still can with -l. I am
keeping the original 2^32 limit even with -l, because the problem with
that is not performance, it is that the resulting MTC could overflow a
uint64 (also the CAN list only goes up to this range).
Diffstat (limited to 'radix_info.go')
| -rw-r--r-- | radix_info.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/radix_info.go b/radix_info.go index 0500a33..79b68e0 100644 --- a/radix_info.go +++ b/radix_info.go @@ -12,7 +12,7 @@ func main() { } if err == nil { - factorInfo := GetFactorInfo(args.Radix, args.FullMap) + factorInfo := GetFactorInfo(args.Radix, args.FullMap, args.LargeCalc) if args.Compact { factorInfo.WriteToCompact(os.Stdout) } else { |
