Path: csiph.com!eeepc.pasdenom.info!news.pasdenom.info!news.dougwise.org!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Date: Fri, 28 Jan 2011 20:34:16 +0100 From: Luuk User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en_US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: deleting files References: In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: Lines: 23 NNTP-Posting-Host: 80.101.116.74 X-Trace: 1296243253 news.xs4all.nl 32470 [::ffff:80.101.116.74]:60506 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.java.programmer:25616 On 28-01-11 20:00, Roedy Green wrote: > I wrote a program to tidy up my hard disk. I run it as administrator. > It tells me there are a fair number of junk files I cannot delete. I > have a utility, presumably written in C, that much more rapidly scans > my drive for junk and manages to wipe out much of the junk I could > not. > > I curious if anyone has experimented and could tell me: > > 1. why in the C utility is so much faster than my utility. My code is > basically just a bunch of File.list() with filters. What Java doing to > dither? > > 2. What is the utility doing to let it kill more files? Whats the name of that utility, and how does you java-source look like C is compiled code, and runs faster/more-optimized than Java which is byte-compiled (as i remember correctly) to be platform independend, so there a penalty at the last step.... -- Luuk