Re: [Rd] Huge performance difference between implicit and explicit print

2013-10-31 Thread Sean O'Riordain
Minor point and probably not relevant to the speed issue, but df() is the density function for the F distribution, so I have (recently) stopped using it for referring to data.frames. Sean On 30 October 2013 23:32, Gabriel Becker wrote: > Hadley, > > As far as I can tell from a quick look, it is

Re: [Rd] Huge performance difference between implicit and explicit print

2013-10-30 Thread Gabriel Becker
Hadley, As far as I can tell from a quick look, it is because implicit printing uses a different mechanism which does a fair bit more work. >From comments in print.c in the R sources: * print.default() -> do_printdefault (with call tree below) * * auto-printing -> PrintValueEnv *

Re: [Rd] Huge performance difference between implicit and explicit print

2013-10-30 Thread Gabor Grothendieck
On Wed, Oct 30, 2013 at 6:22 PM, Hadley Wickham wrote: > Hi all, > > Can anyone help me understand why an implicit print (i.e. just typing > df at the console), is so much slower than an explicit print (i.e. > print(df)) in the example below? I see the difference in both Rstudio > and in a termin

[Rd] Huge performance difference between implicit and explicit print

2013-10-30 Thread Hadley Wickham
Hi all, Can anyone help me understand why an implicit print (i.e. just typing df at the console), is so much slower than an explicit print (i.e. print(df)) in the example below? I see the difference in both Rstudio and in a terminal. # Construct large df as quickly as possible dummy <- 1:18e6 df