05-20-2022, 01:38 AM
You can use it with your program to reduce memory usage, but usually you'd need to _INFLATE the compressed data before you can interact with it.
Think of writing a program to use to study the whole bible with. How many bytes of memory would you use to store the whole thing uncompressed? (350,000 or so, I think) But here's an idea -- what if you compress each chapter, and only uncompress the one the user is actually studying? How much memory would you save?
You compress things to reduce their size on disk, or in memory, but you need to uncompress them before you can make use of them.
Think of writing a program to use to study the whole bible with. How many bytes of memory would you use to store the whole thing uncompressed? (350,000 or so, I think) But here's an idea -- what if you compress each chapter, and only uncompress the one the user is actually studying? How much memory would you save?
You compress things to reduce their size on disk, or in memory, but you need to uncompress them before you can make use of them.