Git Product home page Git Product logo

Comments (3)

kilobyte avatar kilobyte commented on July 25, 2024

With current restrictions, I don't think it makes sense to make compsize a library.

The most cumbersome part is requiring root. A library that's usable only by root-only programs is not that nice, and LD_PRELOAD plays badly with sudo.

Then, if you're interested about space saved, it's inter-file sharing that gives the most. For that, even compsize itself is hardly adequate — I pondered writing something akin to ncdu but so far, I don't have enough tuits.

Compression data should be properly exposed kernel side first.

from compsize.

rdoeffinger avatar rdoeffinger commented on July 25, 2024

Not that I disagree much, but...
Didn't think of the sudo aspect, though for my use-case it seems easy enough to just start a shell first with sudo.
I wouldn't think the inter-file sharing is relevant to my use-case (standard desktop install), and even if it was you'd have a massive visualization issue anyway.
And having it properly exposed by the kernel sure would be best, but how many years have we been waiting for that? Will that even happen in the next 10 years?
Right now basically anyone who needs to save space needs to run e.g. ncdu and in parallel try to dig into the details with compsize. Even with all the restrictions, ANYTHING would be a vast improvement in the current situation.
At least that's my point of view on it.

from compsize.

namibj avatar namibj commented on July 25, 2024

I can only add my idea of how to provide this: add it to (a fork of) ncdu, with a limited way that allows the user to provide a relative and absolute limit of how much of a file needs to be referenced from another (think mp3 files with changed ID3 tags) to treat them similar to hardlinks (maybe adding the unique part of the clone when seeing the size of it, or maybe just letting it fall under the table).

Even if you'd have to adapt ncdu to drop it's partial recomputation, and pretty much just use it's display/navigation layer, that'd be awesome.

from compsize.

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.