Git Product home page Git Product logo

respire's People

Contributors

aabtop avatar

Watchers

 avatar

respire's Issues

Consider introducing a build database for improved "has file been modified" checks.

The article https://apenwarr.ca/log/20181113 goes in to detail on why using only the file modification time would produce both false positives and false negatives on whether a file is out of date or not. One way to address this is to introduce the concept of a build database where we track more information about the last time a file was built (such as file size, tracking the generation of generated file, etc...). Respire currently only uses the file modification time to check if a re-build is necessary.

The advantages of implementing this are to have more correct builds, and fewer re-builds of files that do not need to be re-built. The disadvantages are that it adds a considerable complication and centrality (though perhaps it can be decentralized on a per-registry-file basis) to the build. Currently, Respire (core) does not maintain any "special" files or databases when running. It's not clear to me if the pros outweigh the cons here, but the article above is really interesting so I wanted to at least track it.

Here is where we decide if a file needs to be re-built:

bool should_rebuild = AnyInputNewerThanOutputs(
, and poking around there you'll see that it ultimately just depends on file modification times.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.