Ubuntu snap deduplication

Login or Register to Reply

Thread Tools Search this Thread
# 1  
Old 06-18-2016
Ubuntu Ubuntu snap deduplication

I think the ubuntu snap is great idea.
However the fact that it may contain duplications has two disadvantages.
1) eating more space in the storage.
2) eating more space in the internal memory (RAM), it will load the same library more than once to the memory.

Now the solution for this is simple.
We can have one directory that is called the repository, and it will contain all the libraries and binaries of all the snap packages.
The name of the file in this repositories will be the sha-256 of their content, so only if the two files are identical, they will override each other, but in this case it won't matter because they are the same.
The snap package itself will contain hard link to the libraries and binaries that it is using from the repositories.
So if two different snap package will use exactly the same version of Java/python (etc etc..), it will be stored only once, and will be load only once.
We can also count the number of hard link for every file in central repositories, and if it only one, then it mean that no snap repositories is any more using this binaries, and it can be deleted.

This way all snap package are isolated, but we have no duplication.

Now I say nothing new here, other said it already, I am just repeating what they have said.

What I don't understand is they are not implementing it ?
I mean it sound like an easy problem to solve.

What is holding back the snap developer from doing it?

Are there any obstacle that I am not aware of ?

can any of the snap developers tell me what prevent them from implementing this?

I mean it sound not very easy , but maybe I am not aware of issues.

So I hope someone can explain to me why this is not implemented?
Login or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
How to get data from SNAP file? filosophizer AIX 4 12-12-2016 11:07 AM
Unable to execute snap command sivakumarl AIX 4 05-21-2012 03:28 AM
[UBUNTU] mount.nfs fails in Ubuntu / Works on Red Hat!!! alan Ubuntu 2 08-16-2010 02:00 PM
SNAP EDR issue. uxadmin007 Red Hat 1 04-06-2010 03:43 AM
snap file for other system? lijiajin UNIX for Dummies Questions & Answers 0 01-08-2010 03:43 AM
script which take a snap shot of Topas abhishek27 AIX 6 08-18-2008 08:59 PM
dump .snap question thumper UNIX for Dummies Questions & Answers 3 03-23-2007 12:12 PM