You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RcppFastFloat: Rcpp Bindings for the fastfloat C++ Header-Only Library
Motivation
Converting ascii text into (floating-point) numeric values is a very common problem. The
fast_float header-only C++ library by Daniel
Lemire does this very well, and very fast at up to or over to 1 gigabyte per
second as described in more detail in a recent arXiv paper.
This package brings this header-only library to R so that other R user can access it simply by
adding LinkingTo: RcppFastFloat.
Example
A modified example function is included, try
library(RcppFastFloat)
exampleParse()
with default arguments---or supply some arguments. We also include a simple timing comparison in
the file benchmark/comparison.R which you can run just call via
Rscript or r. On our machine, fast_float comes out
as just over 3 times as fast as the next best alternative (and this counts the function calls and
all, so pure parsing speed is still a little bettter).
Right now the package is brand new and reasonably empty.
Contributing
Any problems, bug reports, or features requests for the package can be submitted and handled most
conveniently as Github issues in the
repository.
Before submitting pull requests, it is frequently preferable to first discuss need and scope in such
an issue ticket. See the file
Contributing.md (in the
Rcpp repo) for a brief discussion.