Skip to content

Conversation

bfredl
Copy link
Member

@bfredl bfredl commented Dec 28, 2018

Some changes to kbtree to make it possible to step through in a debugger, and make it slightly easier to read.

Probably doesn't make sense to merge right now, but after the initial extmark #5031 is done I might experiment with some changes to make it more effective to our use case:

%s/__KB_KEY(key_t, \(\a\+\))/\1->key/g
%s/__KB_PTR(b, \(\a\+\))/\1->ptr/g
%s/(unsigned int)/(size_t)
@bfredl bfredl added this to the unplanned milestone Dec 28, 2018
use
nmap AA <cmd>call nvim_buf_add_highlight(0, -1, "Errormsg", line('.')-1, 0, -1)<cr><cmd>echo nvim__buf_tree_inspect(0)<cr>
nmap BB <cmd>call nvim_buf_clear_highlight(0, -1, line('.')-1, line('.'))<cr><cmd>echo nvim__buf_tree_inspect(0)<cr>
@justinmk
Copy link
Member

somewhat related, attractivechaos/klib#117 suggests a potential improvement to kvec.

@bfredl
Copy link
Member Author

bfredl commented Dec 28, 2018

somewhat related, attractivechaos/klib#117 suggests a potential improvement to kvec.

But it seems nvim has already done those in our private copy.

@bfredl
Copy link
Member Author

bfredl commented Dec 29, 2018

Added some comments to the algorithms, especially for how kb_delp_aux works, if I understood things correctly.

@bfredl
Copy link
Member Author

bfredl commented Sep 6, 2020

Resolved. src/nvim/marktree.[ch]

@bfredl bfredl closed this Sep 6, 2020
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.

2 participants