Skip to content

Node Compile Cache For Faster Startups #271

Open
@beeequeue

Description

@beeequeue

Do AWS Lambdas use Node's new compile cache (available from 22.1+) feature to speed up startups yet?

Specifically, setting NODE_COMPILE_CACHE=path/to/cache will use V8's code caching to skip parsing and compiling files by caching the results to the disk. The cold start speed improvements should be theoretically massive.


Netlify's CLI starts up "75-400ms" faster on average with it enabled

It would be especially effective if enabled when running TS files with Node's built-in TS support

ESLint's CLI startup time went from 200ms->130ms

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