Giter VIP home page Giter VIP logo

Comments (4)

JamesYangLim avatar JamesYangLim commented on July 19, 2024

I just saw this

Note: since buildtrees, packages and download subdirectories must not be cached, they are excluded by the .artifactignore file generated by the vcpkg-run task.

This answer my first question.

from cppbuildtasks.

JamesYangLim avatar JamesYangLim commented on July 19, 2024

Hi @lukka, although .artifactignore excluded some folders, caching in my pipeline still go up to 5GB. Meanwhile installed folder is only roughly 750MB which is a lot smaller. So I think that it will be still be very useful if you have that example done.

Note that restore 5GB cache takes roughly 3 minutes while restore 750MB takes about 25 seconds which is quite a big difference.

from cppbuildtasks.

lukka avatar lukka commented on July 19, 2024

@JamesYangLim there is room for improvements indeed.
In order to get the content and size of the first level of the cached content, could you run on server the following command just after the cache has been restored:

cd /path/to/vcpkg/root/dir
du -hs *

Also try to change the key's value given to the Cache task, and verify whether the size of the cache is going to be significantly smaller: this could happen if the cache task has been run with no .artifactignore file in the past (i.e. the cached content is immutable, and if cached once, it wont change unless a different key is being used)

from cppbuildtasks.

lukka avatar lukka commented on July 19, 2024

@JamesYangLim found the issue and fixed it in #15 ! Thanks for reporting this problem.

from cppbuildtasks.

Related Issues (20)

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.