Skip to content
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

perf: cache cells.line_types_entire_buf to avoid repeated calls #90

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

kiyoon
Copy link
Owner

@kiyoon kiyoon commented Aug 11, 2023

Note that a proper fix is doing partial update just like it is done in the python package, using vim.api.nvim_buf_attach with on_lines. See src/jupynium/buffer.py for its logic.

Due to the complexity, this is a temporary fix that will cache the result and avoid re-calculation of line types.

Fixes #89

@kiyoon kiyoon changed the title perf: cache cells.line_types_entire_buf to avoid repeated calls (#89) perf: cache cells.line_types_entire_buf to avoid repeated calls Aug 11, 2023
@kiyoon kiyoon merged commit 05ef99a into master Aug 11, 2023
14 checks passed
@kiyoon kiyoon deleted the fix/line_types_perf branch June 15, 2024 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refresh line_types cause performance degradation(probably)
1 participant