Skip to content

Deprecate instant/flags.vim #189

@dbarnett

Description

@dbarnett

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions