When a file is compressed it has different stages which slows it down. What would be the part that makes it slow down the most for cpu and for memory. It does not have to use both at the same time.
Does looking for what to compress take up time, the size, the conversation. the formula or a specific part in it, the searching, the dictionary size, etc?
I assume every file compression is different but a general example.