Coder Social home page Coder Social logo

Comments (6)

FlorianWendelborn avatar FlorianWendelborn commented on May 18, 2024 4

Also ~/.Trash exclusion would be nice, because even if I have trash excluded in TimeMachine I still have to wait for Asimov to scan through.

Wouldn't it be better to just automatically skip all folders that are excluded from time machine then?

from asimov.

rowanbeentje avatar rowanbeentje commented on May 18, 2024

#18 excludes ~/Library as part of other speedup work - we can add others in the same way I suppose, but I wonder if there's a point where the exclusion checks make the overall process slower than just quickly scanning directories!

from asimov.

jmarceli avatar jmarceli commented on May 18, 2024

I was thinking rather about exclusion directly through find, something like (according to https://stackoverflow.com/questions/4210042/how-to-exclude-a-directory-in-find-command):

find ~ -type d -name "${parts[0]}" -not -path "/Users/*/Library/*"

I think that this shouldn't hit overall performance (I'm not a find expert so I may be wrong).

Also ~/.Trash exclusion would be nice, because even if I have trash excluded in TimeMachine I still have to wait for Asimov to scan through.

Regarding the speed.
Maybe excluding nested node_modules with find rather than inside the dependency_file_exists() would save some time?
What I mean is:

 find ~ -type d -name "${parts[0]}" -not -path "*/node_modules/*/node_modules*"

from asimov.

rowanbeentje avatar rowanbeentje commented on May 18, 2024

#17 (included in #18 as well!) excludes subdeps, and yeah, that -not -path is the approach used to exclude ~/Library - I just can't help feeling that will have a cost.

(Trashes folders are a great one though)

from asimov.

jmarceli avatar jmarceli commented on May 18, 2024

I'm still waiting for ~/.Trash to complete processing (about 20min) despite the fact that I've excluded trash in TM anyway...

The first run of Asimov takes about 2:30 hours, but the overall effect is great.
Thanks for this script.

from asimov.

muuvmuuv avatar muuvmuuv commented on May 18, 2024

Yep, why not exclude everything inside the TimeMaschine ignore list from the find process? I mean the ignore list that you can manually edit in the TimeMaschin pane in settings.

from asimov.

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.