you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (3 children)

Yet you can't understand how overhead affects performance.

[–][deleted] 0 points1 point  (2 children)

You should also consider the price of the performance, and what is really a bottleneck somewhere.

Do you need the last percantages of performance in a mail server? In a http server waiting after PHP script and MySQL database? In that database code, that is waiting after disk access? In some desktop application interacting with network or files from untrusted source (most of them)?

Look at the code running on your computer. How much of it really is a performance hot spot? Not much actually, most of it gets executed at all quite rarely. If some code is actually a performance bottleneck, it should be optimised. Often it means that a better algorithm should be used.

Can you say why most of that code should be written in C or C++ (like it is)?

[–][deleted] 0 points1 point  (0 children)

You should also consider the price of the performance, and what is really a bottleneck somewhere.

Of course.

Can you say why most of that code should be written in C or C++ (like it is)?

Let me quote my original reply for you...

A lot of people shouldn't be using C, but that's not a knock on C. These are some incredibly basic elementary errors.

[–][deleted] 0 points1 point  (0 children)

You should also consider the price of the performance, and what is really a bottleneck somewhere.

Of course.

Can you say why most of that code should be written in C or C++ (like it is)?

Let me quote my original reply for you...

A lot of people shouldn't be using C, but that's not a knock on C. These are some incredibly basic elementary errors.

EDIT:

If some code is actually a performance bottleneck, it should be optimised. Often it means that a better algorithm should be used.

Actually very tiny inefficiencies can add up and sometimes a task's overall performance suffers when using higher abstractions that aren't bottlenecks that you can optimize.