git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] gitk: memory consumption improvements
@ 2016-11-07 18:54 Markus Hitter
  2016-11-07 18:57 ` [PATCH 1/3] gitk: turn off undo manager in the text widget Markus Hitter
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Markus Hitter @ 2016-11-07 18:54 UTC (permalink / raw)
  To: git@vger.kernel.org; +Cc: Paul Mackerras


List, Paul,

after searching for a while on why Gitk sometimes consumes exorbitant amounts of memory I found a pair of minor issues and also a big one: the text widget comes with an unlimited undo manager, which is turned on be default. Considering that each line is inserted seperately, this piles up a huuuge undo stack ... for a read-only text widget. Simply turning off this undo manager saves about 95% of memory when viewing large commits (with tens of thousands of diff lines).

3 patches are about to follow:

 - turn off the undo manager,

 - forget already closed file descriptors and

 - forget the 'commitinfo' array on a reload to enforce reloading it.

I hope this finds you appreciation.


Markus

-- 
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. (FH) Markus Hitter
http://www.jump-ing.de/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-12-12  9:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-07 18:54 [PATCH 0/3] gitk: memory consumption improvements Markus Hitter
2016-11-07 18:57 ` [PATCH 1/3] gitk: turn off undo manager in the text widget Markus Hitter
2016-11-07 19:01   ` [PATCH 2/3] gitk: remove closed file descriptors from $blobdifffd Markus Hitter
2016-11-07 19:03     ` [PATCH 3/3] gitk: clear array 'commitinfo' on reload Markus Hitter
2016-11-07 22:13   ` [PATCH 1/3] gitk: turn off undo manager in the text widget Jacob Keller
2016-11-08 21:37 ` [PATCH 0/3] gitk: memory consumption improvements Junio C Hamano
2016-11-09 12:39   ` Markus Hitter
2016-11-09 23:04     ` Junio C Hamano
2016-12-12  9:51 ` Paul Mackerras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).