Skip to content

kostya/fast_to_f

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fast_to_f

Crystal wrapper for fast_double_parser.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      fast_to_f:
        github: kostya/fast_to_f
  2. 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

About

Fast floats parser in Crystal (wrapper for fast_double_parser).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published