How to perform in systems?

Asked

Viewed 89 times

0

How the issue of performance in software, websites and etc works.?

Facebook transpired PHP in C++ to gain performance. How does it work? I know with C++ to set exactly the variables, but the performance depends on the language, programmer or hardware?

  • The speed of a car depends on the driver, manufacturer or tire?

  • I think it’s from the manufacturer maybe the driver sees himself differently!

  • 1

    The point is that there is no answer. If an area is deficient, the whole is affected. It’s an extremely broad question and you can’t point out something specific that’s more important. When you have a specific case, then you can analyze and see where the bottleneck is; which is impacting the program more severely. Broadly speaking, it is a question that does not have enough information to give a specific answer.

  • Good way to think @Pedrovonhertwig thanks!

  • @Williancesar The answer solved your question? Do you think you can accept it? See [tour] if you don’t know how to do it. This would help a lot to indicate that the solution was useful to you. You can also vote on any question or answer you find useful on the entire site

1 answer

2

The biggest performance gain will always be given by the programmer. A wrong choice for changing performance easily by at least 10 orders of magnitude.

Using right algorithms is always the best way. Using performatic libraries helps a lot. Language may make some difference, but only in very disparate languages will there be differences that can reach only an order of magnitude.

Cases of major differences are bad libraries. Most chaos should not change more than 3 or 4 times.

A language of script, interpreted, with dynamic typing and no mechanism seeking the least cost of abstraction can really make a big difference. But the difference won’t be so great just because transpilation. So much so that the gain became better when they started using the Hack. And more gain when they started using other languages.

Facebook did this because the initial decision was bad, there was a very large code base to be ported, for some reason they thought it was simpler to create a new infrastructure than to rewrite the whole code, which is completely absurd in a case like this. I mean, they were willing to do it. And of course, the gain for them was very great, if you’re using 10,000 servers and you can reduce it to 1,000, it’s worth the effort, I just think they could have rewritten the code in another language. Several unicorns preferred this path, even trying a much lower overall gain than Facebook, but even greater in detail.

Every Stack Exchange network, including the main site with about 10 million hits per month, could, in the extreme, serve everything on just one server (rotates in 9 to give off), and with much better performance than Facebook. In C# that is not even a language considered as performatic. This is engineering. There are people who do very simple things, no competition, just one operation, and clog the whole machine.

I even wonder if I needed all this. The expense to make such a fast software is probably higher than the additional cost a little more hardware, not to mention the inflexibility and difficulty of maintenance caused (the UX is hampered because of the adopted philosophy, the improvements are implemented at the turtle’s pace). Facebook is also like this.

Hardware will give linear gain at most, probably much less than this. And the added dollar gain will be much lower after entering the thousands.

I would answer a little better if the text of the question were a little better.

  • Thanks for the reply but answered a little my doubt but also I did not correctly explain how I work with web know that 90% of performance has to be in front-end minify files and images but gain more performance than just minifying files issue many hits as I do so the server does not fall I do not understand much yet because I am new in the area and system with many lines of code how to gain performance in it too?

  • like Google with youtube as they manage to load a video so fast don’t know maybe hardware or even programmer?

  • No, this is far from it. And the question is becoming too broad, apart from the fact that the car is getting ahead of the horse.

  • What will be then the language I want to learn how to make my systems more performance open faster think faster even store and read faster?

  • I have this problem expressing myself sorry!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.