Re: Which delete statement is faster?
- From: JF Mezei <jfmezei.spamnot@xxxxxxxxxxxxx>
- Date: Tue, 16 Oct 2007 15:20:53 -0400
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.
.
- Follow-Ups:
- Re: Which delete statement is faster?
- From: Jan-Erik Söderholm
- Re: Which delete statement is faster?
- References:
- Which delete statement is faster?
- From: Mike Minor
- Re: Which delete statement is faster?
- From: briggs
- Which delete statement is faster?
- Prev by Date: Re: www.hp.com/go/openvms is still toast
- 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
|