Looks like the merge sort implementation in java cannot handle big arrays. Just comment the line 86 (or delete it):
// Collections.sort(recs, comp); The output will not be sorted, but that's fine. I have to post process the data anyhow... On Sat, Aug 6, 2011 at 12:11 AM, Patrick Pelinski <[email protected]>wrote: > Hi Philipp, > > i tried it and get a error: > > G:\Downloads>java FileTreeStatCSV G:\Daten\Dropbox\ > Analyzing directory G:\Daten\Dropbox ... > Saving to syncany-size-categories.csv ... > Saving to syncany-type-categories.csv ... > Exception in thread "main" java.lang.IllegalArgumentException: > Comparison method violates its general contract! > at java.util.TimSort.mergeLo(Unknown Source) > at java.util.TimSort.mergeAt(Unknown Source) > at java.util.TimSort.mergeCollapse(Unknown Source) > at java.util.TimSort.sort(Unknown Source) > at java.util.TimSort.sort(Unknown Source) > at java.util.Arrays.sort(Unknown Source) > at java.util.Collections.sort(Unknown Source) > at FileTreeStatCSV.stat(FileTreeStatCSV.java:86) > at FileTreeStatCSV.main(FileTreeStatCSV.java:154) > > I have a real big Dropbox-Directory (30k Files, 3k Directorys, 21,4GB > amount of Data). If it would help i could debug the code and try to find > the problem, but im more familiar with c++ rather than java. > > Greetings, > Patrick > > Am 05.08.2011 23:49, schrieb Philipp Heckel: > > Hi everyone!! > > > > As part of my Master thesis, I am trying to minimize the disk space that > > Syncany uses on the remote storage. To get the better results when > > deduplicating the user's files, it would be very helpful to know what > > type of files Syncany mostly has to deal with. > > > > I wrote a small java program to make some stats. Here's a detailed > > explanation: http://syncany.org/thesis > > It only *takes 2 minutes*, is completely anonymous and would really help > > me to make Syncany better/work! > > > > Cheers > > Philipp > > > > > > > > -- > Mailing list: https://launchpad.net/~syncany-team > Post to : [email protected] > Unsubscribe : https://launchpad.net/~syncany-team > More help : https://help.launchpad.net/ListHelp > >
-- Mailing list: https://launchpad.net/~syncany-team Post to : [email protected] Unsubscribe : https://launchpad.net/~syncany-team More help : https://help.launchpad.net/ListHelp

