Skip to content

Optimize startup performance #104

@sindresorhus

Description

@sindresorhus

I would like meow to have as little impact on startup performance as possible.

#67 is one way to improve that.

I will also do some profiling with DevTools to see what else can be optimized.

From memory, the

meow/index.js

Line 78 in 646f30b

normalizePackageData(pkg);
is pretty slow, so we could defer normalizing the package.json data until the user calls cli.pkg. We only really need the description field ourselves, which doesn't need to be normalized.

I'm open to other ideas and help with this.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions