[MERGE] optimize annotate

Aaron Bentley aaron.bentley at utoronto.ca
Wed Nov 29 12:54:30 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nicholas Allen wrote:
> 
>> As you suspect, it would fill 1000MB of memory.
> Did I understand correctly? I'm worried because we have files with
> 40,000 revisions and tipical file size might be 50 - 100kb. So in this
> case would annotate take up 40,000 * 50 Kb (i.e 2 - 4 Gb) of memory? If
> so I would rather annotate take a second longer ;-)

No, you don't.  He's talking about files.  He's right that we shouldn't
keep large numbers of file versions in memory.  But that's beside the
point, because it's not what my change does.

I'm talking about revisions, not file versions.  Revisions store the
commit log, the committer name, the time-of-commit, and that sort of
thing.  They are ~1K in size, no matter how big your files are.  So
keeping lots and lots of revisions in memory is completely fine.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFbYMG0F+nu1YWqI0RArnOAJ40rFU0QlMH9GBgDmgqyK+/6trQXQCcCeSt
XsJ+sWyBSub9eNvTGcPte/M=
=bDdx
-----END PGP SIGNATURE-----




More information about the bazaar mailing list