I highly doubt it makes any execution time difference. With a .bat file
you have to load each line separately (interpreted), so you can run into
performance issues when they are on separate lines. But we've got the
'&' now, with everything all on one line, so that's not an issue. In
today's world of extremely fast processors, I can't see how it could
make much of a difference, unless you're talking about many millions of
executions, and even then, only a little bit. I might be wrong about my
assessment, but I would be very surprised if I was.
And besides, if you really have a process that is so extensive, is the
command processor a good choice for language? Performance should almost
never be a priority consideration for batch processing, as long as the
difference is not significant.
________________________________
From: vefatica [mailto:]
Sent: Thursday, June 05, 2008 10:43 AM
To: Mickey Ferguson
Subject: RE: [Support-t-139] set /a x=1,y=2,z=x + y
On Thu, 05 Jun 2008 12:35:58 -0500, you wrote:
Quote:
>Looks like yet another silly CMD extension. Why not just write
>
>V:\> set /a x=1 & set /a y=2 & set /a z=x + y
Silly?
set /a x=1,y=2,z=x + y
is a lot easier to write and, I'd bet, a lot faster to execute.
--
- Vince