Path: csiph.com!eeepc.pasdenom.info!news.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!nx01.iad01.newshosting.com!newshosting.com!69.16.185.16.MISMATCH!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe12.iad.POSTED!8ad76e89!not-for-mail From: Arved Sandstrom User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: deleting files References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 29 Message-ID: X-Complaints-To: abuse@newsgroups-download.com NNTP-Posting-Date: Fri, 28 Jan 2011 22:04:58 UTC Organization: Public Usenet Newsgroup Access Date: Fri, 28 Jan 2011 18:05:05 -0400 Xref: csiph.com comp.lang.java.programmer:26151 On 11-01-28 03:00 PM, 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? What this really comes down to is (as others have suggested), what's your definition of a "junk" file? It obviously differs from the common approaches used by industrial junk file removal programs, because I doubt any of those are going to be using too much (if any) of a "String[] list(FilenameFilter filter)" mechanism...in whatever language they are written in. AHS -- So I listened to that Sputnik moment talk over and over again, and I think, No, we don't need one of those. You know what we need is a "spudnut" moment. -- Sarah Palin, commenting on SOTU address