zip - Can data be added to a file for better compression? -


If I understand the basic idea of ​​zip compression correctly (and I think compression in general), then compressed files are found only in the pattern I

The original figure was expressed in small signaling. There were compression algorithms out there that were not once to add junk / unimportant data insert patterns in a file? Does it violate some file integrity rules, or even the returns are decreasing?

Mostly I was thinking of adding white space to a place that does not care about it, such as an HTML file.

Edit: A more concrete example would probably be better:

  .class-a {display: block; Color: #fff; }. Class-B {display: block; Color: # FF;}  

Obviously that commute (and reusing classes) will be the best practice here, but it can do an algorithmic thing, humans do not have to Want to add any spaces to use any amount?

EDITEDIT: It all looks like some strange parody of harmful compression, now I think about it. Gany compression or some crap.

No, the amount of information added to the file will increase the amount of information that is also included in the compressed file Should be done, so the compressed file will grow.

If there is a string AAA in a file, and if that pattern is added, then to say that the compressed file AAA plus represents something that the pattern is repeated elsewhere goes. The recording takes place where the pattern is being repeated.

Another way to see this using HTML Example would be that if you add too many white spots, it might well be included, so the final compressed file size is the best If there will be more "compression ratio", but there will be no other interesting content in the uncompressed file, so full correction in compression will be at zero.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -