diff options
author | Andreas Grois <andi@grois.info> | 2022-10-21 19:08:23 +0200 |
---|---|---|
committer | Andreas Grois <andi@grois.info> | 2022-10-21 19:08:23 +0200 |
commit | f8b8a1f5804057bf150e60a757d86b984099a631 (patch) | |
tree | 20eb759bad4d82d511815871f927a2bfe94bc666 /src/passwordmaker/base_conversion/mod.rs | |
parent | 8da1c8a10dedb66a21f90957cbbb33c0e0ceece5 (diff) |
Exponential search for largest potency.
Speeds up the 20 and 32 byte cases. Has slightly negative impact for 16
byte case.
Diffstat (limited to 'src/passwordmaker/base_conversion/mod.rs')
-rw-r--r-- | src/passwordmaker/base_conversion/mod.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/passwordmaker/base_conversion/mod.rs b/src/passwordmaker/base_conversion/mod.rs index b1ffedf..dc98c92 100644 --- a/src/passwordmaker/base_conversion/mod.rs +++ b/src/passwordmaker/base_conversion/mod.rs @@ -9,8 +9,6 @@ mod iterative_conversion_impl; /// Converts an input to a different base (which fits in usize). Returns the digits starting at the most significant one. pub(super) trait BaseConversion { type Output : ExactSizeIterator<Item=usize>; - // return type is subject to change. Hopefully soon the math will be rewritten, so we can skip the Vec and IntoIter. - // will have to remain an ExactSizeIterator though. fn convert_to_base(self, base : usize) -> Self::Output; } |