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

Add support for an optional faster file hashing method in Gatsby core #38891

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

FraserThompson
Copy link
Contributor

Description

This adds a new environment flag GATSBY_FAST_HASHING. If set, instead of cryptographically hashing files to check if they've changed, it will use a content digest comprised of the modification time and the inode. This is slightly less robust, but significantly faster especially on sites with lots of large files.

This is the same as the optional feature added to gatsby-source-filesystem here: #37464

Documentation

The flag has been added to flags.ts. Not sure if any other web documentation would need to be added, or if it should be flagged as experimental.

Tests

No tests were added because this doesn't add new functionality, it just changes how existing functionality works, so existing tests should cover it.

Related Issues

Addresses #38887

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant