Re: Which delete statement is faster?



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/
.



Relevant Pages

  • Re: Which delete statement is faster?
    ... Is there any difference in the speed at which the command is executed in the ... del a*.txt;* ... Unofficial Affordable OpenVMS Home Page: ... Unofficial OpenVMS Hobbyist Support Page: ...
    (comp.os.vms)
  • Re: DFU comments
    ... I was spoiled by "commercial" VMS defraggers by the time I got ... DFU can defragment files, but not freespace. ... Unofficial Affordable OpenVMS Home Page: ... Unofficial OpenVMS Hobbyist Support Page: ...
    (comp.os.vms)
  • Re: July the 4th
    ... weapons to defend their homes against Jesse James & Co. ... The Indians have ... Unofficial Affordable OpenVMS Home Page: ... Unofficial OpenVMS Hobbyist Support Page: ...
    (comp.os.vms)
  • Re: US Military bans HTML in emails
    ... Due to an increased network threat condition, ... More specifically, HIPAA requires, among other things, that privacy be ... Unofficial Affordable OpenVMS Home Page: ... Unofficial OpenVMS Hobbyist Support Page: ...
    (comp.os.vms)
  • Re: OpenVMS using RAID drives
    ... > By not realising his error in time, ... Unofficial OpenVMS Hobbyist Support Page: ... Unofficial Affordable OpenVMS Home Page: ... Unofficial OpenVMS Marketing Home Page ...
    (comp.os.vms)