-
Notifications
You must be signed in to change notification settings - Fork 41
Closed
Labels
Description
Maktaba's instant/
mechanism for executing files immediately has a few drawbacks:
- Costs overhead on early startup
- Doesn't interact well with various plugin managers
- Encourages overuse
It's especially significant if most plugins have an instant/flags.vim file.
We should find another convention for defining flags that doesn't depend on loading them instantly. It could work something like:
- Flags are defined in whatever standard location for each plugin
- Maktaba queues up Flag.Set operations until the flag is initialized or read.
- Flag.Get and any other attempt to access a flag's value will trigger flag initialization.
- At plugin/ time, all remaining flags are initialized so callbacks and errors trigger.
There'd be some migration pain, and it may not be worth making changes like if there's no measurable performance benefit.