If I compile Firefox instead of binary install it will work faster? [closed]

Many times I hear that software compiled at my hardware will work faster at my hardware. Can I win 10% of performance of Firefox or Chromium if compile from source?


Solution 1:

As a Gentoo user I can say for sure: it depends.

  • If you disable some heavy options your application will work faster.
  • If you enable some risky optimizations and they work - your application will work faster.
  • If you use upstream defaults, your application will work slower.
  • If you misconfigure anything, application will be slow and unstable.

Generally, there is no noticable improvement that can be achieved by simple recompilation of the app. The only difference are heavy CPU-bound applications like video encoders. They perform slightly better with every new CPU technology and every new compiler.

Solution 2:

I have very basic knowledge and experience in compiling from source. But as far as I came to know, there are some advantages in compiling an app from its source.

Basically, you can add or remove features from an app which is great if you need some specific features in it rather than installing whole of the app.

Therefore, if you compile an app based on your need, you will get exactly what you need rather than whole of the app which can improve the performance.

Have a look on these articles:

  • Compiling vs pre-compiled packages
  • What is the difference between building from source and using an install package?

Since this post was made 3 month ago, I would request you to share any possible answer to your question if you have come to.

Bests