Skip to content

web-ext start is slow (4-5 seconds for --help or --version) #1301

Closed

Description

@Rob--W

It takes an excessive amount of time before web-ext starts its program logic.
Even simple commands like web-ext --help or web-ext --version take 4-5 seconds to run on my Linux machine.

Activity

  1. rpl commented on Apr 11, 2018

    @rpl
    Member

    @Rob--W I looked at the nodejs profile data while running web-ext --help and most of the time is spent in v8 C++ code and js code part of the nodejs internals related to the module loading.

    I bet that a pretty big improvement of the startup time can be easily achieved by loading the command modules lazily instead of importing all of them statically before processing the command line arguments (and we currently import all of them in two places: in the 'main' module to export them as an "exposed API", and in the 'program' module which uses it to run the command selected by the command line arguments).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions