Mike said:
It depends on how big the files are and on what
you do with them. A
large file is not wholly or completely
"decompressed" when it is
accessed, the same thing as when you read a
file, not all of it is
loaded into memory it's loaded in "chunks"
slightly bigger than the
requested part of the file, the file is read a
few KBs ahead of the
request and loaded a bit at a time. You may not
see significant
differences when you open a single file but
applications that process
or handle a large number of files may be
negatively impacted by file
compression.
Just for grins, I just compressed a very large
database file. There is a very definite
performance hit there! I was surprised too, to
see the pagefile grow as large as it did; normally
it stays around a few hundred meg but it grew to
well over 700 Meg. Not sure I understand why, but
it explains the performance hit, or part of it at
least.
Compression can also cause a significant
bottleneck if the files are
served over a network, files cannot be
transported over a network in a
compressed state, they have to be fully
decompressed before they can
be sent over the network and this can cause a
significant performance
deterioration. As a general rule user files on
file servers should
not be compressed, the same applies to machines
serving files on small
workgroups and home network.
That's not really the case. Compressed files are
just nibbles, bits & bytes like any other file to
the network. Compressed files are ONLY compressed
while they reside on the disk. They are
decompressed as they are read and enter the
transfer buffers already decompressed in XP, so
when they cross the network, they ARE
decompressed; it's not that they are required to
be. It's just how XP works.
If the source and destination are both
compressed folders, then it's decompressed, sent
across the network, and recompressed as it is
written to the disk. THAT can be quite a
performance hit too.
But compressed at the source and uncompressed at
the destination would simply mean it didn't go
thru the compression process before being written
to the destination drive, so less of a bottleneck.
I've never paid attention, but I doubt the
compression from the source to uncompressed at the
destination would be very noticeable unless you
were running a very high speed network faster than
say a typical 10/100 setup.
Then: A file compressed by say WinZip or 7Zip
or whatever, will readily transfer over a
network, meaing compression has nothing to do with
anything. The fact that a file is compressed or
not makes no difference to the transfer protocols;
it's only data to them & nothing cares whether
it's a jar, tar, zip or any of the other several
formats that are possible.
Cheers,
Twayne