fast_to_f
fast_to_f
Crystal wrapper for fast_double_parser.
Installation
-
Add the dependency to your
shard.yml
:dependencies: fast_to_f: github: kostya/fast_to_f
-
Run
shards install
(requires gcc and wget).
Usage
require "fast_to_f"
if v = FastToF.parse?("0.54321")
p v
end
Benchmark
str.to_f64: 6.40s
FastToF.parse?(str): 1.62s
Repository
fast_to_f
Owner
Statistic
- 3
- 0
- 0
- 0
- 0
- over 3 years ago
- March 4, 2021
License
MIT License
Links
Synced at
Fri, 22 Nov 2024 11:01:56 GMT
Languages