Re: Black and blue colored file names

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



C A Upsdell > wrote:

John John (MVP) wrote:

The system decides that one of my files is infrequently used, and compresses it. I then use it every day for the rest of my life. Will it ever get decompressed *back to its original state* without intervention from me? The compression didn't require intervention, after all.


When you open the file the operating system will automatically decompress it so that it can be read and used, once you are done with the file the operating system will automatically compress it again, all of that will happen without intervention from you. There is a bit of an operating system overhead in doing the above, the operating system has to take extra steps when it opens and closes the files. If you do indeed use the file regularly then you can just do as Gerry said and change the compression attribute on the file or on the folder holding the file.


If the file is to be read only, there is no need to re-compress.

The operating system has to decompress the file to read it and regardless of if the file is read-only or not, when the compress attribute is set on the file it will be compressed again after you close it.


I wonder how much overhead truly exists in decompressing files. Yes, more CPU time will be required. OTOH, if the compressed file is much smaller than the decompressed file, the file on the disk will be shorter and therefore disk I/O will be faster.

Yes, there is some overhead in the decompress/re-compress process and this overhead is usually greater than the disk I/O differences. The difference may be negligible on a workstation doing light work but you certainly don't want to compress files on a busy server!

Best practices for NTFS compression in Windows
http://support.microsoft.com/kb/251186/en-us

How To Use File Compression in Windows XP
http://support.microsoft.com/kb/307987/en-us

John
.



Relevant Pages

  • Re: [PATCH] init: bzip2 or lzma -compressed kernels and initrds
    ... Compression is slowest. ... The kernel size is about 33 per cent smaller with lzma, ... I guess this is done on the internal hard disk of the laptop (this is ... disk, decompress, write to disk. ...
    (Linux-Kernel)
  • Re: zlib and zip files
    ... I need to decompress zip archive. ... The zlib module is for reading and writing the gzip compression format, used by the gzip program; it is not the same as a zip archive a la PKZip. ... The zipfile module will let you read and write zip archives. ... The gzip compressor and decompressor can work on the fly, but the format that it produces is a bit other than the format of compressed data zipfile. ...
    (comp.lang.python)
  • Re: copyng large compressed files
    ... buffer. ... transparent compression. ... To read a file you need to decompress it. ... overhead of decompress. ...
    (comp.lang.java.advocacy)
  • Re: Black and blue colored file names
    ... John John wrote: ... When you open the file the operating system will automatically decompress it so that it can be read and used, once you are done with the file the operating system will automatically compress it again, all of that will happen without intervention from you. ... If you do indeed use the file regularly then you can just do as Gerry said and change the compression attribute on the file or on the folder holding the file. ...
    (microsoft.public.windowsxp.help_and_support)
  • Compression for small-memory devices
    ... The microcontroller only needs to decompress the stream from Flash memory, the compression is done on a normal PC. ... that all the LZ algorithms I saw need some RAM space to hold a sliding window on the decoder side -- LZ codes the offset/length pairs in respect to the decoded stream. ...
    (comp.compression)