You can compress text files basically.
Try it! Technically you can load any type of file, but the compression will not necessarily work well.( In fact you can apply the same principle to compress images).
Well, I did not do an analysis on this. But, more or less I did some tests with 1MB file (compressed in ~3 seconds), 10 MB file (compressed in ~22 seconds). Tested with the following specs: Intel64 Family 6 Model 78 Stepping 3 GenuineIntel ~2492 Mhz
Extra bits:
- Performance improvement
- A better explanation of how it works.