convert-base 1.0.1

convert the radix (base) of digits stored in a vector
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#![feature(duration_float)]
use convert_base::Convert;
use std::time::{Instant as Time};

fn main () {
  let mut base = Convert::new(243,9);
  let start = Time::now();
  let input = (0..5_000_000).map(|i| (i%243u64) as u8).collect();
  let output = base.convert::<u8,u8>(&input);
  println!["{}",start.elapsed().as_secs_f64()];
  println!["{} items", output.len()];
}