Set the EarlyEncode flag on insert.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Wed, 2 Nov 2011 19:48:16 +0000 (20:48 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Thu, 3 Nov 2011 07:45:21 +0000 (08:45 +0100)
Rumour has it that this actually speeds up the insert.

src/de/todesbaum/jsite/application/ProjectInserter.java

index b14dadb..cb0e830 100644 (file)
@@ -521,7 +521,7 @@ public class ProjectInserter implements FileScannerListener, Runnable {
                }
                putDir.setVerbosity(Verbosity.ALL);
                putDir.setMaxRetries(-1);
-               putDir.setEarlyEncode(false);
+               putDir.setEarlyEncode(true);
                for (String filename : files) {
                        FileEntry fileEntry = createFileEntry(filename, edition, containerFiles);
                        if (fileEntry != null) {