diff design.txt @ 198:33a7d76f067b

Performance optimization: reduce memory to keep revlog cached info
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 20 Apr 2011 05:40:14 +0200
parents 3a7696fb457c
children 114c9fe7b643
line wrap: on
line diff
--- a/design.txt	Tue Apr 19 03:49:29 2011 +0200
+++ b/design.txt	Wed Apr 20 05:40:14 2011 +0200
@@ -99,6 +99,10 @@
 after further changes in HgStatusCollector (to read ahead 5 elements, 50 max cache, fixed bug with -1) - hg4j dumps 5000 in
 93 seconds, memory consumption about 50-56 Mb
 
+IndexEntry(int offset, int baseRevision) got replaced with int[] arrays (offsets - optional)
+for 69338 revisions from cpython repo 1109408 bytes reduced to 277368 bytes with the new int[] version.
+I.e. total for changelog+manifest is 1,5 Mb+ gain   
+
 <<<<<
 
 Tests: