Helping people with computers... one answer at a time.

Windows File Compression automatically compresses files so that they take up less space. In the best circumstance Windows File Compression can free up a lot of space - but frequently it's not as much as you might expect, and there is cost.

I am running Windows 2000 and I am wondering if I should run the Disk Cleanup (compress old files). It is currently taking up 14372KB of space.

Should I compress old files?

While you're only asking about Disk Cleanup, I'm going to talk about Windows File Compression in more general terms. Using file compression to save space is nothing new, even when it's native in the file system used by Windows. But it's not necessarily a slam dunk.

In fact, without knowing more, I get to use all of my favorite answers:

Yes.

No.

It depends.

After you've finishing beating your head against the computer, read on, and I'll explain why.

Windows File Compression is a part of the NTFS file system that when enabled, automatically compresses files to take up less space. Seems simple enough, right?

As a gross oversimplification compression means replacing one representation of data with another that takes up less space. For example the string "**********" (10 asterisks) might be replaced with three characters - "10*" - meaning "ten asterisks". When decompressed the "10*" would get transformed back into "**********". Now, of course there are complications - for one example we need a way to make sure that if there's a "10*" in the data before compression we don't try to turn it into "**********" on decompression.

Suffice it to say that real compression algorithms are a complex technology, bordering on an art form.

So if good compression can "makes things smaller", what's the catch?

In my opinion, there are two big ones.

Compression is Work - One thing that they all compression algorithms share is that they require calculation. That means when you compress or decompress a file on your computer, your CPU needs to do more work than if the file were not compressed. Different algorithms have different characteristics - some require a great deal of CPU processing to compress the data, while the decompression can be lightning fast. Others compress comparatively poorly, but take less time to do it.

Compressing files that are already compressed doesn't help. - A file that has already been compressed by a reasonably good compression algorithm will typically not compress well if you try to compress it again with another. In fact, in the worst case, a "compressing" a compressed file can sometimes even make it bigger. And here's the catch within the catch: many files you use ever day are already compressed. Typically audio, video and image formats are already using compression algorithms as part of the file format. ".mp3", ".jpg", ".mpg" files, and similar, are all already compressed, and typically to not benefit much from attempts to compress them further.

So what should you do? When should you consider compression?

"My advice? Don't bother."

I'd consider the following:

  • If the files you're considering compressing are used infrequently, then they might be candidates. The "old files" from a disk cleanup utility probably fall into this category.

  • If the files you're considering compressing aren't already compressed, then it could make sense. There's no way for me to know what files disk cleanup is pointing you at, so I can't say how this might apply to you.

  • If you have a powerful enough CPU, you can compress files used more frequently. I definitely wouldn't compress files I use frequently on an older machine. It can slow down your machine as the CPU gets more involved in every disk access.

  • Realize that compressed files and compressed file systems are harder to recover in the event of a crash. Make sure that you're appropriately backed up.

My advice? Don't bother. Compression on average will probably recover only about 50% of the space used by files you compress. If you're really running into space problems that have you looking at this, you're probably better off adding a hard drive to your system.

I have no compressed file systems on any of the computers I run. I've done so in the past only on laptops where adding or replacing a hard drive just wasn't in the cards for me, and only after I've started to run out of space and other options didn't free up enough.

If you want to investigate file compression further, note that when using NTFS compression is not all-or-nothing. For example you can select which folders should be compressed. Just right click on the folder in Windows Explorer, select Properties, and on the General tab, click on Advanced. There you'll see Compress contents to save disk space. Select that and the folder and optionally all folders within it will be compressed and all further files placed in those folders will be automatically and transparently compressed. Don't do that to active folders, such as C:\Windows or c:\Windows\System32 for example, because it'll adversely impact your performance. But if you have large collections of data that aren't already compressed, and aren't used that frequently, and your CPU won't get in the way, it might be an option.

And in the long run, allowing your disk cleanup utility to compress old files likely won't hurt. It probably just won't get you a lot either.

Article C2711 - July 3, 2006 « »

Share this article with your friends:

Share this article on Facebook Tweet this article Email a link to this article
Leo Leo A. Notenboom has been playing with computers since he was required to take a programming class in 1976. An 18 year career as a programmer at Microsoft soon followed. After "retiring" in 2001, Leo started Ask Leo! in 2003 as a place for answers to common computer and technical questions. More about Leo.

Not what you needed?

Recent Comments
40 Comments
Tom Nguyen
December 1, 2012 4:47 PM

One more thing I failed to mention. There's a Task Manager Option before Clicking Performance. My Bad.

David
December 21, 2012 9:49 AM

Leo, does compressing pictures or audio files make them suffer any loss of quality (in the same way as converting, for example, a .png as a .jpg) ? - which example I take to be irreversible. Many thanks and Season's Greetings to you - David

No. Generic compression algorithms like .zip, or Windows File Compression, are lossless.
Leo
23-Dec-2012

Mark J
December 21, 2012 11:29 AM

@David
.MP3 compression causes the music to suffer loss. .FLAC (Free Lossless Audio Compression) as you can see from its name doesn't cause it to lose quality.

David
December 23, 2012 5:00 PM

Many thanks, Leo and also thanks to Mark J. (Loss of quality in audio is such a touchy subject. So much depends on the original - vinyl records, for example, and presumably most radio signals always had to be 'compressed' though not in the same way. A friend of mine swears that minidiscs are inferior though I've always been happy with mine...)

JDonner
January 8, 2013 5:48 PM

"My advice? Don't bother. Compression on average will probably recover only about 50% of the space used by files you compress. If you're really running into space problems that have you looking at this, you're probably better off adding a hard drive to your system."

I find that a rather ignorant comment that's clearly based on personal circumstances. I wouldn't like to give a dime to every person out there in the USA who can't afford a new hard drive right now. There is nothing wrong with compression, it's used everywhere, even in data transmission. Data compression on a hard drive can be very useful for those people who want to extend the life of their data or backup drive (I wouldn't advice it for the OS partition). Performance isn't so much an issue anymore like it used to be, because the author ignores the fact how powerful modern processors have become.

The article is an example of how people are pushed into upgrades that they don't really need. Heck, you'll be surprised how many people don't need that new drive after an assessment of the data on that drive by an experienced end user or professional.