You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:lua require('gitgraph').draw({}, { all = true, max_count = 10000 })
Result is a crash with this error:
PANIC: unprotected error in call to Lua API (not enough memory)
Result of free (my memory usage):
total used free shared buff/cache available
Mem: 16100688 9912152 2272604 885492 5150172 6188536
Swap: 2097148 2096656 492
I suspect this is partially because of highlighting every branch on every line, both because of storing every highlight before populating the buffer and because nvim_buf_add_highlight() can use exponential amounts of memory.
However this is not the only cause. I commented out all of the code that adds highlights in core.gitgraph (and disabled padding while I was at it) and, while it works at max_count = 10000, it still runs out of memory at max_count = 15000. I just wanted to point out highlighting since I know it will grow out of hand.
The text was updated successfully, but these errors were encountered:
Slightly different from #18, not just running slow but running out of memory.
init.lua
:Using the rust repo:
Result is a crash with this error:
Result of
free
(my memory usage):I suspect this is partially because of highlighting every branch on every line, both because of storing every highlight before populating the buffer and because
nvim_buf_add_highlight()
can use exponential amounts of memory.However this is not the only cause. I commented out all of the code that adds highlights in
core.gitgraph
(and disabled padding while I was at it) and, while it works atmax_count = 10000
, it still runs out of memory atmax_count = 15000
. I just wanted to point out highlighting since I know it will grow out of hand.The text was updated successfully, but these errors were encountered: