Files
doomemacs/lisp/cli
Henrik Lissner c5188c4388 perf: cache module flags in symbol plists
For small amounts of data, symbol plists are the most efficient (space
and time wise) as data access gets in Emacs. Hash tables, though O(1),
impose a minimum threshold of overhead before it becomes the efficient
option, but this benefit won't be obvious for datasets of at least 60 or
less.

Since modulep! is used *a lot*, and used to determine a module's
state (and state of its flags), there is a benefit to caching it.
Still, this is only a read-only cache, and does not replace the
`doom-modules` hash-table, which will always be the preferred interface
for the rest of the module API.
2022-09-16 01:14:22 +02:00
..
2022-07-30 22:41:13 +02:00
2022-09-12 16:01:43 +02:00
2022-07-30 22:41:13 +02:00
2022-07-30 22:41:13 +02:00