Skip to content

Optimize ccache configuration for faster Node.js builds#236

Merged
chorrell merged 1 commit intomainfrom
optimize/ccache-aggressive-config
Feb 17, 2026
Merged

Optimize ccache configuration for faster Node.js builds#236
chorrell merged 1 commit intomainfrom
optimize/ccache-aggressive-config

Conversation

@chorrell
Copy link
Copy Markdown
Owner

@chorrell chorrell commented Feb 17, 2026

This PR improves build performance by optimizing ccache settings in both workflow files:

Changes:

  • Set max cache size to 10GB via action config (hendrikmuhs/ccache-action)
  • Disable hash_dir to enable aggressive hash matching for better cache hit rates across builds
  • Configure sloppiness to be resilient to minor environment changes (timestamps, locale, file mtime)
  • Add cache configuration display for visibility into actual settings

Files updated:

  • .github/workflows/dockerimage.yml (PR build testing)
  • .github/workflows/update-current-image.yml (scheduled daily builds)

Expected Impact:

  • 10-20% faster builds on cache hits
  • Better cross-version cache reuse
  • More consistent performance across workflow runs

Testing:
The workflow will automatically test the changes on the next scheduled build or manual dispatch.

@chorrell chorrell force-pushed the optimize/ccache-aggressive-config branch from 74850ff to 3289e6e Compare February 17, 2026 15:17
- Increase ccache max size from default to 10GB
- Enable aggressive hash matching with hash_dir=false
- Configure sloppiness settings for improved cache hit rates
- Display cache configuration for debugging purposes

These settings reduce cache misses and improve build performance for Node.js static compilation.
@chorrell chorrell force-pushed the optimize/ccache-aggressive-config branch from 3289e6e to 697458b Compare February 17, 2026 15:24
@chorrell chorrell merged commit 663d4e8 into main Feb 17, 2026
8 checks passed
@chorrell chorrell deleted the optimize/ccache-aggressive-config branch February 17, 2026 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant