Redirection to log file is quicker than to null : Why?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: Redirection to log file is quicker than to null : Why?

#16 Post by Squashman » 24 Feb 2017 10:30

Redirecting to CON is nothing new. That we know has always been slow.

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Redirection to log file is quicker than to null : Why?

#17 Post by aGerman » 24 Feb 2017 11:35

Win10 Home, 32 bit
Intel(R) Atom(TM) CPU Z3735F @ 1.33GHz (4 CPUs), ~1.33 GHz
2GB RAM

Avira Free Antivir switched on

Code: Select all

File Size: 2269852080
NUL Redirect: 0 Days 0 Hours 4 Minutes And 46 Seconds
FILE Redirect: 0 Days 0 Hours 9 Minutes And 11 Seconds


switched off

Code: Select all

File Size: 2269852080
NUL Redirect: 0 Days 0 Hours 5 Minutes And 1 Seconds
FILE Redirect: 0 Days 0 Hours 10 Minutes And 8 Seconds

:roll: :lol:

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: Redirection to log file is quicker than to null : Why?

#18 Post by Squashman » 24 Feb 2017 15:33

The common denominator sounds like Windows 10. I can test that on my wife's laptop at home.

mcnd
Posts: 27
Joined: 08 Jan 2014 07:29

Re: Redirection to log file is quicker than to null : Why?

#19 Post by mcnd » 24 Feb 2017 16:15

I was bitten by the same problem some time ago.

At that moment I didn't have the needed time to do more tests and I forgot it. Anyway I tested it in XP, 7 32b and 7 64b and in all of them the type and dir commands redirected to nul were much slower than redirected to a file.

Post Reply