Commit fe9787c
committed
gui: presentation: commits: limit pipeset (pre-)rendering
Limit the number of (pre-)rendered pipesets which are visible when
rendering a git graph to the actual currently visible number of commits.
This is important for large repositories with a large number of commits
when scrolling past the first 200 commits, which currently triggers a
load of the complete commit history[1]. If this happens and the git
graph rendering is enabled a potentially large number of pipes (~138k
for the linux kernel) is allocated.
[1]: https://github.com/jesseduffield/lazygit/blob/d56a9cf73e6a34550e42d2627c011c4b73e5a975/pkg/gui/controllers/local_commits_controller.go#L1265
Signed-off-by: Stefan Kerkmann <s.kerkmann@pengutronix.de>1 parent d56a9cf commit fe9787c
1 file changed
+6
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| |||
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
110 | | - | |
| 111 | + | |
111 | 112 | | |
112 | | - | |
| 113 | + | |
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| |||
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
131 | | - | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
136 | | - | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| |||
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
152 | | - | |
153 | | - | |
154 | 153 | | |
155 | 154 | | |
156 | 155 | | |
| |||
0 commit comments