Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: update compile cache storage structure #54291

Merged
merged 1 commit into from
Aug 19, 2024

Commits on Aug 12, 2024

  1. src: update compile cache storage structure

    This refactors the compile cache handler in preparation for the
    JS API, and updates the compile cache storage structure into:
    
    - $NODE_COMPILE_CACHE_DIR
      - $NODE_VERION-$ARCH-$CACHE_DATA_VERSION_TAG-$UID
        - $FILENAME_AND_MODULE_TYPE_HASH.cache
    
    This also adds a magic number to the beginning of the cache
    files for verification, and returns the status, compile
    cache directory and/or error message of enabling the
    compile cache in a structure, which can be converted as
    JS counterparts by the upcoming JS API.
    joyeecheung committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    8f9eb07 View commit details
    Browse the repository at this point in the history