Files
neovim/runtime
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
..
2023-09-17 22:52:56 +02:00
2023-08-13 13:25:10 +01:00
2023-09-13 17:23:45 +02:00
2023-09-20 04:15:23 -07:00
2023-09-17 22:52:56 +02:00
2023-09-17 22:52:56 +02:00
2023-08-23 20:36:16 +01:00
2023-09-20 13:42:41 +01:00
2023-08-23 20:36:16 +01:00
2023-09-17 22:52:56 +02:00
2022-08-20 10:04:55 +02:00
2023-08-13 13:25:10 +01:00
2023-08-13 13:25:10 +01:00
2023-08-13 13:25:10 +01:00
2023-08-13 13:25:10 +01:00
2023-08-13 13:25:10 +01:00
2023-08-13 13:25:10 +01:00
2023-09-02 11:08:29 +02:00
2023-08-24 11:33:06 +09:00
2023-08-13 13:25:10 +01:00
2023-04-07 13:26:29 +02:00
2023-08-31 10:58:54 +02:00
2023-09-02 11:08:29 +02:00