Re: Which delete statement is faster?
- From: David J Dachtera <djesys.no@xxxxxxxxxxxxxxxx>
- Date: Tue, 16 Oct 2007 19:32:37 -0500
Jan-Erik Söderholm wrote:
JF Mezei wrote:
briggs@xxxxxxxxxxxxxxxxx wrote:
In article <13h9vel51sekc1b@xxxxxxxxxxxxxxxxxx>, "Mike Minor"
<mminorhsd@xxxxxxxxxxxxx> writes:
Is there any difference in the speed at which the command is executed
in the following examples?
del a*.*;*
del a*.txt;*
del a*.txt;1
I think that a non-wildcarded delete will be the fastest since it can do
a direct lookup. (but this is not in your example)
In the above cases, the delete command would still have to sequentially
scan all files in the directory beginning with "a" and then see if it
matches the mask. Obviously, the more "*" you have in a mask, the more
CPU will be needed to decide if a full file spec matches the wildcard,
but unless you are running an All Mighty Microvax II, you might not see
any difference since the delete command will spend the most time in IO
and the CPU time needed to check a string against a wildcard
specification is fairly trivial.
Note also that if you'd like to delete *all* files in the
directory, The DELETE option in DFU is (claimed to be) much
faster then DCL DELETE.
....; however, be VERY CAREFUL which DFU version you use.
V2.7-1 can't handle big trees. It will crash and leave a mess to cleanup,
although ANALYZE/DISK/REPAIR handles it nicely.
--
David J Dachtera
dba DJE Systems
http://www.djesys.com/
Unofficial OpenVMS Marketing Home Page
http://www.djesys.com/vms/market/
Unofficial Affordable OpenVMS Home Page:
http://www.djesys.com/vms/soho/
Unofficial OpenVMS-IA32 Home Page:
http://www.djesys.com/vms/ia32/
Unofficial OpenVMS Hobbyist Support Page:
http://www.djesys.com/vms/support/
.
- References:
- Which delete statement is faster?
- From: Mike Minor
- Re: Which delete statement is faster?
- From: briggs
- Re: Which delete statement is faster?
- From: JF Mezei
- Re: Which delete statement is faster?
- From: Jan-Erik Söderholm
- Which delete statement is faster?
- Prev by Date: Re: Adobe SVG client scripting - Not that it matters. . .
- Next by Date: Re: Which delete statement is faster?
- Previous by thread: Re: Which delete statement is faster?
- Next by thread: Re: Which delete statement is faster?
- Index(es):
Relevant Pages
|