Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #25605

Re: deleting files

Date 2011-01-28 14:58 -0500
From Arne Vajhøj <arne@vajhoej.dk>
Newsgroups comp.lang.java.programmer
Subject Re: deleting files
References <kc46k65u61goegok3j9heoc5t5juh78k13@4ax.com>
Message-ID <4d431fdc$0$23756$14726298@news.sunsite.dk> (permalink)
Organization SunSITE.dk - Supporting Open source

Show all headers | View raw


On 28-01-2011 14: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?

It is very difficult to say why some C source code we don't
know compiled with an unknown compiler is faster than some
Java code that we don't know running in an unknown Java
implementation.

Best guess must be:
2/3 probability that your Java code is not good
1/3 probability that your Java's File implementation is not good (*)

*) this type of utility is not a typical usage of Java so it may
not have gotten much attention.

> 2. What is the utility doing to let it kill more files?

Without knowing what files it is then it is impossible to guess.

Arne

Back to comp.lang.java.programmer | Previous | Next | Find similar


Thread

Re: deleting files Arne Vajhøj <arne@vajhoej.dk> - 2011-01-28 14:58 -0500

csiph-web