Re: deleting files
Luuk wrote:
C is compiled code, and runs faster/more-optimized than Java which is
Baloney.
byte-compiled (as i [sic] remember [in]correctly) to be platform independend, so
there a penalty at the last step....
Java code gets compiled to machine code under certain circumstances,
so that statement is not universally true, even if we assume you meant
"compiled to bytecode" rather than the meaningless "byte-compiled".
We don't know from the OP if the JVM startup time is part of the
perception of slowness for the Java code. For all we know it might
run just as fast as the C version once it gets started.
We also do not know what, if any, algorithmic differences there are
between the Java program and the C utility. The C program might make
platform-specific low-level calls. The speed difference might have
absolutely nothing at all whatsoever in the least to do with byte code
vs. machine code, rather due to the difference between high-level and
low-level calls. This could also account for the observed difference
in behavior.
There's no way to answer the OP's question as it stands. He wants to
know the difference in speed between two programs, written in
different languages, with markedly different behaviors, with no source
code available for either. It's a bloody meaningless question -
apples and oranges.
--
Lew
Ceci n'est pas une pique.