Excessive memory usage in TortoiseHG annotation/File History screen
Created originally on Bitbucket by dcapps-ksd (David Capps)
There's a few files in our repo that Tortoise appears to use excessive memory when going to the File History / Annotate screen.
Details:
-
The file is ~6200 lines long
-
It's got a history going back ~7 years (mostly imported from a previous SVN repo) with ~250 commits that change the file
-
If I ask for an annotate from the command line HG client, it takes ~80MB of memory and produces output as expected
-
If I go to the annotate screen in TortoiseHG, the background HG process takes ~80MB of memory (which makes sense); after that appears to have completed its work, TortoiseHG starts loading the data and uses ~7GB of RAM to do so (!)
It does then display the annotation history, however using 7GB seems excessive - some of my colleagues with less (free) memory have trouble getting it to display at all...
Unfortunately the repo isn't public, however I'm happy to run whatever commands or patches might provide more information on tracking the issue down if someone can let me know what to do.