Skip to content

Is glint v2 supposed to be slower? #1022

@ijlee2

Description

@ijlee2

In ember-container-query, ember-intl, embroider-css-modules, and a production app, I'm seeing that lint:types takes 20-55% more time to run. In the case of the production app, I had to increase the memory in CI to fix the JavaScript heap out of memory error.

> time pnpm lint:types

# Production app (before)
pnpm lint:types  22.94s user 2.27s system 170% cpu 14.814 total
pnpm lint:types  23.06s user 2.27s system 172% cpu 14.666 total
pnpm lint:types  22.91s user 2.36s system 168% cpu 15.020 total

# Production app (after)
pnpm lint:types  35.35s user 2.41s system 158% cpu 23.783 total
pnpm lint:types  33.42s user 2.42s system 158% cpu 22.678 total
pnpm lint:types  33.42s user 2.44s system 158% cpu 22.650 total

The migration went smoothly (great job to everyone), but I still felt a little disappointed, because I had thought that using *.{gjs,gts} would give us a performance boost over using *.hbs. Is the memory consumption/runtime expected to increase? Did I perhaps not configure the projects correctly (see the 3rd commits in the links above)?

These are the dependencies that I had/have:

Before:

After:

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