-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refresh line_types cause performance degradation(probably) #89
Comments
Does this happen with the PR or even without the PR? Maybe the function return table can be cached and reused if the buffer is not changed |
Is it because of the |
The problem persisted after I set -- jupynium.nvim/lua/jupynium/highlighter.lua
function M.update()
if not M.is_enabled() then
return
end
local end_of_file = vim.fn.line "$"
local line_types = cells.line_types_entire_buf()
print("Call me")
Yeah I agree this is a clever approach |
During may hack in #88, I found that jupynium will call
cells.line_types_entire_buf
even without editing. That seems result in slow scroll in large files when jupynium is enabled.The text was updated successfully, but these errors were encountered: