Giter VIP home page Giter VIP logo

elfshaker's People

Watchers

 avatar  avatar  avatar  avatar

elfshaker's Issues

Optimization SHA1 computation by leveraging mtime

Motivation

          ๐Ÿ‘ โค๏ธ 

Looking good simple and effective, I think though that we should use the file modification time metadata we have as an heuristic, because I have implemented similar things for the cache in the past using file checksum and it is impossible to do even the sha1sum of all source entries, it's very slow, that's why we rely on git.

The problem is not the sha1 computation is the IO heaviness, you basically read in RAM all built files and they are HUGE. I think this code could crash on typical Debug builds including a bit of boost libs.

If already the sha1sum should be computed on mmapped files or on streamed file operations.

If it didn't change it's the same (as elfshaker set file times on extract) and if it changed then we check the sha1. I haven't measured yet and we should before optimizing.

Originally posted by @daminetreg in #6 (review)

Description

  • Measure with and without the optimization on big build trees (boost in Debug mode and so on )
  • Implement mtime optimization file list diffiing
  • Integrate in tipi

Definition Of Done

tipi can use the optimized elfshaker status

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.