Skip to content

Improve performance: load-grunt-config is twice slower than plain gruntfile.js  #173

@themenow

Description

@themenow

I compared two configurations by running a single task "grunt clean"

Time for loading tasks:

plain gruntfile with jit-grunt - 852ms
separated config files with load-grunt-config and jitGrunt - 1.9s

At first, I thought jitGrunt didn't work, that turned out was wrong, debugging showed it did work.

However, comparing before and after using load-grunt-config to split the gruntfile.js, the performance impact is significant by double the loading time.

It may not noticeable on a powerful computer, for example, if the loading time before is 50ms, increasing to 100ms isn't a big deal. But on my computer, this adds 1 second on each task running, and sum up to additional 15+ seconds for my "build" task which has 10+ steps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions