Displaying 2 results from an estimated 2 matches for "posicct".
Did you mean:
posicxct
2017 Nov 20
2
Small performance bug in [.Date
Hi all,
I think there's an unnecessary line in [.Date which has a considerable
impact on performance when subsetting large dates:
x <- Sys.Date() + 1:1e6
microbenchmark::microbenchmark(x[1])
#> Unit: microseconds
#> expr min lq mean median uq max neval
#> x[1] 920.651 1039.346 3624.833 2294.404 3786.881 41176.38 100
`[.Date` <- function(x, ...,
2017 Nov 21
0
Small performance bug in [.Date
...so, we had a very similar change a while ago :
------------------------------------------------------------------------
r65926 | luke | 2014-06-12 15:54:38 +0200 (Thu, 12. Jun 2014) | 2 Zeilen
Ge?nderte Pfade:
M src/library/base/R/datetime.R
Commented out class(x) <- NULL in [.POSIXct and [[.POSICct.
------------------------------------------------------------------------
and we never seemed to have followed up in a systematic manner
finding other places where this happens and could be
eliminated. I see about half a dozen examples in
base/R/dates.R alone and am trying to find more in other...