What is the best type of file compression to optimize server response?

1

Recently I've been researching ways to improve server performance, reducing its load and consequently increasing its speed. I found several types of compacts and benchmarks comparing the different types of compressed files, but all tests carried out years ago, I would like to know at the moment:

  • In a basic comparison, several references cite the gzip as a standard, would it be the best? Why?
  • Taking into account not only the compressed final file, but other parameters such as its compression / decompression time, used memory and compression ratio (initial / final size). What would be the advantage over the others?
  • What more resources / techniques could be applied to improve server response time than code minimizations, SQL query improvements, and application of a new form of compression?
asked by anonymous 16.11.2017 / 13:14

1 answer

1

It's hard to say, every case is a case. Without measuring you can not know.

Keeping your compressed files generally will not benefit you even more on SSD.

If the media file is likely to already have its own compression, it does not make sense to compress it, it will only make the situation worse. It tends to get bigger and will waste a lot of time.

In static files that compression may be large there may be gain, but very little. It could be worse. The decompression time may be longer than the reading time gained. If the file is less than 4KB it will certainly be much worse. Fewer rare files cases will be gained.

What happens is that certain files must be delivered compressed by the HTTP server itself and the client will take care of unpacking, there is gain, but the biggest gain is in the transmission and not in the reading of the file. But we fell in the previous item, the format of the file that will deliver is better compacted. If it is this can only use a compression that the client expects and as far as I know it expects only Gzip . p>

But it needs to do everything according to the web standard it determines, it is not just to compress the file.

This has nothing to do with SEO directly.

    
16.11.2017 / 13:27