Skip to content

Optimize release

Compare
Choose a tag to compare
@Mnwa Mnwa released this 28 Apr 12:04
· 11 commits to master since this release
7c3e347

Features

  • Added + support
let value = ms("+100").unwrap();
assert_eq!(value, 100)
  • Now ms supported only one whitespace between number and postfix
let value = ms("100 ms").unwrap(); // valid
assert_eq!(value, 100)
let value = ms("100  ms").unwrap(); // invalid
assert_eq!(value, 100)

Optimizes

  • Now it works on 2x faster! (from 16ns to 8ns)