You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be in the scope for this project to add stream deduplication to some formats?
It would drastically reduce the filesizes of the archives. Basically, marking blocks which are the same as such, and only including a reference to the first of them in the header. Not all formats may be compatible tho
This would come as an step before compression.
So it could be implemented as a format option, basically "tar+dedup".compressionFormat
Well, at this project, we are definitely fans of @klauspost's work! 😄
It looks like it would mainly involve wrapping the reader/writer for tar... yeah I dunno how well this would work for zip. But tar, possibly.
A lot of users may not find the memory/size tradeoff beneficial for them.
That said, are you interested in putting together a PoC?
I don't have the time to do this right now, I'm a student, I would like to see it in the project, since I think it'd be beneficial and add a lot of value. I can try tho :)
Honestly I haven't really been putting too much effort into this, as the interest (probably understandably) is quite low.
I was looking at what a "modern" implementation would look like. Wouldn't use SHA1 by default - but there is no real good thing for adaptive block splitting. restic/chunker is similar speed to the zpaq splitter, which is inherently single-core per-byte processing.
But let me know if you have any questions, and I will try to remember the best I can :)
@xplshn I know how busy it can be as a student. There's no rush. If you find the time, feel free to spike it together and see how it goes! Could be a fun project.
I was reading through sbase's tar.c, because I find it tidy/neat and simple, I'm trying to find a way to implement this so that it is compatible with other tar implementations.
Activity
mholt commentedon Mar 24, 2025
Well, at this project, we are definitely fans of @klauspost's work! 😄
It looks like it would mainly involve wrapping the reader/writer for tar... yeah I dunno how well this would work for zip. But tar, possibly.
A lot of users may not find the memory/size tradeoff beneficial for them.
That said, are you interested in putting together a PoC?
xplshn commentedon Mar 25, 2025
I don't have the time to do this right now, I'm a student, I would like to see it in the project, since I think it'd be beneficial and add a lot of value. I can try tho :)
klauspost commentedon Mar 25, 2025
Honestly I haven't really been putting too much effort into this, as the interest (probably understandably) is quite low.
I was looking at what a "modern" implementation would look like. Wouldn't use SHA1 by default - but there is no real good thing for adaptive block splitting. restic/chunker is similar speed to the zpaq splitter, which is inherently single-core per-byte processing.
But let me know if you have any questions, and I will try to remember the best I can :)
mholt commentedon Mar 25, 2025
Thanks @klauspost !
@xplshn I know how busy it can be as a student. There's no rush. If you find the time, feel free to spike it together and see how it goes! Could be a fun project.
xplshn commentedon Mar 26, 2025
I was reading through sbase's tar.c, because I find it tidy/neat and simple, I'm trying to find a way to implement this so that it is compatible with other
tarimplementations.Any ideas that come to mind would be helpful :)