Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #25576
| Date | 2011-01-28 21:57 +0100 |
|---|---|
| From | Luuk <Luuk@invalid.lan> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: deleting files |
| References | <kc46k65u61goegok3j9heoc5t5juh78k13@4ax.com> <laib18-l6o.ln1@luuk.invalid.lan> <4d432037$0$23756$14726298@news.sunsite.dk> |
| Message-ID | <p5nb18-uip.ln1@luuk.invalid.lan> (permalink) |
On 28-01-11 20:59, Arne Vajhøj wrote: > On 28-01-2011 14:34, Luuk wrote: >> 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.... > > The Java byte code gets JIT compiled to native code, so that > should not be a problem. > > But this program should not be CPU bound anyway, so it does not > matter. > > Arne > Yes, i got the terms mixed up..... But, like Lew sad, things in C get optimized quicker wit plaform-specific calls.. Back to the original question, 'junk files' should only reside in temporary folders, so you would not have to search them.. ;) -- Luuk
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar
Re: deleting files Luuk <Luuk@invalid.lan> - 2011-01-28 21:57 +0100
Re: deleting files Lew <noone@lewscanon.com> - 2011-01-28 22:47 -0500
Re: deleting files Luuk <Luuk@invalid.lan> - 2011-01-29 11:26 +0100
Re: deleting files "Mike Schilling" <mscottschilling@hotmail.com> - 2011-01-28 20:19 -0800
Re: deleting files Roedy Green <see_website@mindprod.com.invalid> - 2011-01-29 13:53 -0800
csiph-web