| | |
Is Java the wrong language for a duplicate file scanner?
![]() |
•
•
Join Date: Dec 2008
Posts: 53
Reputation:
Solved Threads: 6
•
•
•
•
Re MD5: I guess we are talking about two different things here: security and file uniqueness, hence the confusion. I would personally use MD5 hashing since it seems to be a widely used technique for testing file uniqueness and optimize if and only if required.
•
•
•
•
Also, coming up with a good hash solution [if that is what you were suggesting to the OP] is far from a walk in the park, though it seems to be a good exercise in learning more about hash functions.
> Yep-- the OS will generally automatically cache data read from file.
In my head, I suppose I was actually discounting mapping the file because in practice, Java has (or has had) some severe problems with this, such as not providing a wap to unmap a section of file once it is mapped, and imposing a less-than-expected limit on the total size of mapped file sections. However, if the poster can get things working with file mapping, I'd be very interested to know.
•
•
•
•
Personally I would write this in C over Java. Only because Java is Object oriented and the problem you have posed isn't. Well sort of, but even more the fact that C will probably be much faster than Java for this project.
•
•
•
•
Im also going to try and make it available online, a bit similar to online virus scanning websites. Ive got the website up in HTML, but im willing to scrap that if the duplicate file scanner cant be added to the website code as a plugin / object etc. Is java the wrong language, is netbeans not the best IDE? Shall I consider AJAX
Last edited by jbennet; Jan 8th, 2009 at 10:00 pm.
If i am helpful, please give me reputation points.
![]() |
Other Threads in the Java Forum
- Previous Thread: Connect 4 java program help
- Next Thread: Display how sort works? Please help
| Thread Tools | Search this Thread |
android api applet application apps array arrays automation awt bidirectional binary birt bluetooth businessintelligence busy_handler(null) card chat class classes client code collision columns component constructor database designadrawingapplicationusingjavajslider draw eclipse error errors eventlistener exception expand fractal free game givemetehcodez graphics gui guidancer html ide image inetaddress integer integration intellij j2me java javafx javamicroeditionuseofmotionsensor javaprojects jme jni jpanel jtree julia linux list loop machine map method methods migrate mobile mobiledevelopmentcreatejar myaggfun netbeans newbie oracle plazmic print problem program programming project recursion scanner server set sharepoint smart sms smsspam sort sortedmaps sql string subclass support swing textfield threads tree unlimited utility webservices windows






