Skip to content

Commit c021989

Browse files
committed
add new entry on Date + Datetime being not exactly optimal but set
1 parent 724963e commit c021989

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2022-04-03 Dirk Eddelbuettel <[email protected]>
2+
3+
* vignettes/rmd/Rcpp-FAQ.Rmd: Add paragraph about Date(time) not
4+
being aimed at parsing large quantities at once
5+
6+
* vignettes/rmd/Rcpp.bib: Add four entries
7+
* inst/bib/Rcpp.bib: Idem
8+
19
2022-03-14 Dirk Eddelbuettel <[email protected]>
210

311
* DESCRIPTION (Version, Date): Roll minor version

vignettes/rmd/Rcpp-FAQ.Rmd

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1805,3 +1805,17 @@ For emphasis, here is a quote from the [rcpp-devel post](https://lists.r-forge.r
18051805
Many code examples and packages show exactly that approach (as _e.g._ discussed
18061806
in the [Rcpp Gallery post](https://gallery.rcpp.org/articles/plyr-c-to-rcpp/)).
18071807
Anybody who claims otherwise is (possibly intentionally) misleading.
1808+
1809+
## Converting a large number of Date objects seems slow
1810+
1811+
The `Date` and `Datetime` classes, and their vector variants, go back a very
1812+
long time to the very beginning of \pkg{Rcpp} and use in \pkg{RQuantLib}
1813+
\citep{CRAN:RQuantLib} interfacing \pkg{QuantLib} \citep{QuantLib}. Their intent was,
1814+
essentially, to hold (single) start and end values delineating an interval. The
1815+
design is far from optional, but the interface is now established. We have
1816+
rewritten them once, and do not plan to rewrite them in the near future. Those
1817+
looking to _parse and convert_ many dates at once could look at \pkg{anytime}
1818+
\citep{CRAN:anytime} where we use the Boost parser, or similar approaches using
1819+
the C++ headers-only libraries in packages \pkg{RcppCCTZ} \citep{CRAN:RcppCCTZ}
1820+
\pkg{RcppDate} \citep{CRAN:RcppDate}. We are not likely to carry this over to
1821+
the \pkg{Rcpp} package as there are advantages in remaining dependency-free.

0 commit comments

Comments
 (0)