neovim/runtime/lua/vim/treesitter
Lewis Russell 877d04d0fb feat(lua): add vim.func._memoize
Memoizes a function, using a custom function to hash the arguments.

Private for now until:

- There are other places in the codebase that could benefit from this
  (e.g. LSP), but might require other changes to accommodate.
- Invalidation of the cache needs to be controllable. Using weak tables
  is an acceptable invalidation policy, but it shouldn't be the only
  one.
- I don't think the story around `hash_fn` is completely thought out. We
  may be able to have a good default hash_fn by hashing each argument,
  so basically a better 'concat'.
2023-09-20 13:42:41 +01:00
..
_fold.lua fix(treesitter): don't update fold if tree is unchanged 2023-09-13 08:51:54 +01:00
_meta.lua fix(treesitter): _trees may not be list-like 2023-09-17 19:52:35 +01:00
_query_linter.lua feat(lua): add vim.func._memoize 2023-09-20 13:42:41 +01:00
_range.lua feat(treesitter)!: incremental injection parsing 2023-08-12 16:11:36 +01:00
dev.lua docs: misc #24561 2023-09-20 04:15:23 -07:00
health.lua refactor: deprecate checkhealth functions 2023-04-15 23:40:48 +02:00
highlighter.lua perf(treesitter): do not scan past given line for predicate match 2023-09-16 13:52:42 +01:00
language.lua fix(treesitter): language.add - only register parser if it exists 2023-09-14 10:36:09 +01:00
languagetree.lua feat(lua): add vim.func._memoize 2023-09-20 13:42:41 +01:00
query.lua feat(lua): add vim.func._memoize 2023-09-20 13:42:41 +01:00