deleting files

R

Roedy Green

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.

My idea was the definition of junk is quite personal. So I created a
set of tools, Batik, to concoct a custom junk deleter. I was hoping
it would be blinding fast. see
http://mindprod.com/products1.html#BATIK
--
Roedy Green Canadian Mind Products
http://mindprod.com
To err is human, but to really foul things up requires a computer.
~ Farmer's Almanac
It is breathtaking how a misplaced comma in a computer program can
shred megabytes of data in seconds.
 
R

Roedy Green

What does this mean? A File for which delete() returns false?
yes. You have no idea what the problem is.
--
Roedy Green Canadian Mind Products
http://mindprod.com
To err is human, but to really foul things up requires a computer.
~ Farmer's Almanac
It is breathtaking how a misplaced comma in a computer program can
shred megabytes of data in seconds.
 
R

Roedy Green

You don't give us enough information about the utility or your code to expect
that anyone's experiments are directly relevant.

I was hoping someone had written some file deleting in C and knew why
it would be faster and able to kill more files than my Java code.
The C program I have been referring to is called Ace Utilities. Back
in the 16 bit days I had ways of tracing any code to find out how they
pulled off their magic. But I have no such tool for 32 or 64 bit code
and presumably programs now are so huge it would be quite hard to find
the code of interest.

The hope was, perhaps with a bit of JNI, I could pull off c-speed and
power.

I guess it may have something to do with ownership, and somehow
overriding that ownership to kill files, or possibly overriding
in-use.

--
Roedy Green Canadian Mind Products
http://mindprod.com
To err is human, but to really foul things up requires a computer.
~ Farmer's Almanac
It is breathtaking how a misplaced comma in a computer program can
shred megabytes of data in seconds.
 
A

Arne Vajhøj

I usually use Jet to compile my Java to native code. I have examined
code and discovered that it is generally better than hand-coded
assembler since it takes into account pipelines, not just cycle counts
on individual instructions.

So you have proved that poorly written assembler is slower
than HLL.

That is hardly surprising.

But not very relevant either.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,044
Members
48,769
Latest member
Clifft

Latest Threads

Top