Giter Site home page Giter Site logo

Comments (5)

g0blin-NN avatar g0blin-NN commented on June 20, 2024

@GitCourser
Is it the same with standard 7-zip? 7-zip-zstd adds the necessary functions but does not change 7-zip itself.
That's what I think. I could be wrong.
ps Pardon my English. I don't know it.

from 7-zip-zstd.

sebres avatar sebres commented on June 20, 2024

I assume it was multithreaded compression, was not it?
The compression ratio may change from time to time if method uses multiple threads for compression (default by LZMA2 x9).
You can not only get different compression ratio for different number of threads, but also different compression ratio for same number of threads...
And it'd additionally depend on input and another circumstances (like faster read by cached IO, etc), since buffers handling could deviate by threaded processing.

So your tests are inconclusive if number of threads is larger than 1.

from 7-zip-zstd.

GitCourser avatar GitCourser commented on June 20, 2024

@sebres
I have tested it several times. For the same batch of files, one or several, no matter how many times it is compressed, as long as the same method is used, the compressed size will be the same.
When using LZMA2 [std] Level 9, right-click Add to archive... or Add to <Archive>.7z, and you will get compressed packages of the same size.
But when using LZMA2, Fast [std] Level 9, right-clicking Add to archive... (after calling up the dialog box) will definitely result in a higher compression rate than directly using Add to <Archive>.7z. Smaller file size

from 7-zip-zstd.

sebres avatar sebres commented on June 20, 2024

I guess I understand what you meant now - just not follow exact scenario (of unexpected case) - your description is a bit confusing...
Do you mean this:

  1. right-clicking Add to archive...
  2. select "LZMA2, Fast [std] Level 9" and do compress
  3. archive is N bytes
  4. right-clicking Add to "Archive.7z" (to compress directly without dialog)
  5. archive is N+X bytes (larger than with dialog)

Then I can confirm it.
Indeed, it looks like some of the parameters (from dialog) are not selected if compressing without dialog.
Either not stored or possibly not loaded if compression starts without dialog. This is what 7z saves to the registry:

[HKEY_CURRENT_USER\SOFTWARE\7-Zip-Zstandard\Compression\Options\7z]
"Method"="FLZMA2"
"Level"=dword:00000009
"Dictionary"=dword:08000000

(some of the parameters may be not stored if they are default).

But as @g0blin-NN said - this can be an issue of original 7z.
Although I already saw some stuff that definitely stored in original 7z and never stored in 7z-zstd - for instance archive history of 7z-zstd never contains any path (also registry ArcHistory seems to be always empty).

from 7-zip-zstd.

GitCourser avatar GitCourser commented on June 20, 2024

@sebres
Yes, that’s what it means, but I think this is a bug, because the saved parameters will be used when using LZMA2 (to compress directly without dialog), but not when using LZMA2, Fast

from 7-zip-zstd.

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.