Re: [Rd] Small performance bug in [.Date

2017-11-21 Thread Hadley Wickham
> Yes, at least so it looks in src/main/objects.c > > Also, 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/

Re: [Rd] Small performance bug in [.Date

2017-11-21 Thread Martin Maechler
> Hadley Wickham > on Mon, 20 Nov 2017 12:50:24 -0600 writes: > 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])

[Rd] Small performance bug in [.Date

2017-11-20 Thread Hadley Wickham
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.65