Skip to content

Investigate the new JS API for compile cache in Node #3598

Closed

Description

@tido64

Investigate whether the new JS API for compile cache in Node is something we want to enable.

Activity

  1. tido64 commented on Aug 26, 2026

    @tido64
    MemberAuthor
    CLI (command) Modules cached No cache With cache (warm) Δ Δ % Significant?
    rnx-cli --help 1225 799.9 ms 561.8 ms −238.0 ms −29.8 % ✅ yes
    align-deps --help (shipped bundle) 2 93.8 ms 82.3 ms −11.5 ms −12.3 % ⚠️ see note
    build-tpn --help (third-party-notices) 25 49.2 ms 44.5 ms −4.7 ms −9.6 % ➖ modest
    rnx-kit-scripts --help 31 64.4 ms 60.7 ms −3.7 ms −5.8 % ➖ noise
    commitlint-lite (stdin) 3 31.2 ms 30.3 ms −0.9 ms −2.9 % ➖ noise
    suggestion-bot --help 2 32.1 ms 31.1 ms −0.9 ms −2.9 % ➖ noise
    check-duplicates <map> 6 31.5 ms 30.9 ms −0.7 ms −2.2 % ➖ noise
    rnx-bundle-diff <a> <b> 2 27.1 ms 27.1 ms −0.0 ms −0.0 % ➖ none

    Note on align-deps: the 12.3 % is the theoretical ceiling measured via NODE_COMPILE_CACHE on the shipped single-file bundle. A real in-repo wrapper only nets ~9–10 % (~10 ms) and requires restructuring the bundle's main entry.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions