diff src/org/tmatesoft/hg/internal/FileUtils.java @ 624:507602cb4fb3

FIXMEs and TODOs: pay some technical debt
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Mon, 20 May 2013 20:34:33 +0200
parents 868b2ffdcd5c
children ffce73efa2c2
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/FileUtils.java	Mon May 20 18:35:13 2013 +0200
+++ b/src/org/tmatesoft/hg/internal/FileUtils.java	Mon May 20 20:34:33 2013 +0200
@@ -82,6 +82,10 @@
 			String m = String.format("Failed to copy %s to %s", from.getName(), to.getName());
 			throw new HgIOException(m, ex, from);
 		}
+		/* Copy of cpython's 00changelog.d, 20Mb+
+		 * Linux&Windows: 300-400 ms,
+		 * Windows uncached run: 1.6 seconds
+		 */
 	}
 	
 	public void closeQuietly(Closeable stream) {
@@ -94,12 +98,4 @@
 			}
 		}
 	}
-
-	public static void main(String[] args) throws Exception {
-		final long start = System.nanoTime();
-		final File src = new File(".../hg/cpython/.hg/store/00changelog.d");
-		copyFile(src, new File("/tmp/zxczxczxc234"));
-		final long end = System.nanoTime();
-		System.out.printf("Copy of %,d bytes took %d ms", src.length(), (end-start)/1000000);
-	}
 }