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

fix(common): set consistent timestamps on template-generated files #3353

Merged
merged 4 commits into from
Feb 1, 2024

Commits on Feb 1, 2024

  1. fix(common): set consistent timestamps on template-generated files

    this helps the build system keep track of whether anything has actually changed
    matejcik committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    7524e4e View commit details
    Browse the repository at this point in the history
  2. build(core): SCons "go fast" button

    some pretty safe & reasonable defaults to speed up SCons:
    
    - look at timestamps to figure out whether a file has changed
    - but only if the timestamp is older than 10 secs (which should avoid any problems with 1s precision of mtime, as well as clock drifts etc)
    - implicit cache is something to do with parsing C files for dependencies
    
    see https://github.com/SCons/scons/wiki/GoFastButton
    matejcik committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    e5b9dc2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9e157ca View commit details
    Browse the repository at this point in the history
  4. build(core): optimize qstr and module collection

    Run the preprocessor on each file separately.
    This allows parallelization and doesn't need to re-run for all files if just a small number is changed.
    
    Replace simple extractors with one-liners which are generally going to be faster.
    matejcik committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    10e9b1d View commit details
    Browse the repository at this point in the history