Welcome! Log In Create A New Profile

Advanced

"premature optimization is the root of all evil"

Gena Makhomed
October 28, 2009 03:54PM
Executier Godlike wrote:

>>> Преждевременная оптимизация корень всех зол (с).

> В эту фразу я вкладывал такой смысл:

> б) оптимизация часто ведёт к сильному усложнению кода. Чем сложнее код
> и чем его больше тем проще допустить ошибку.

Д. Кнут не утверждал, что "Efficiency is the root of all evil."
он также не говорил, что "Optimization is the root of all evil."

в фразе "premature optimization is the root of all evil"
ключевым является слово "premature", а не "optimization"

=====================================================================

А теперь, как на самом деле звучала фраза про преждевременную
оптимизацию:

"We should forget about small efficiencies, say about 97% of the
time: premature optimization is the root of all evil."
-- Sir Tony Hoare

И если вспомнить, что тогда люди программировали на ассемблере или
прямо двоичными кодами, считали количество инструкций, то станет
понятен настоящий смысл этой фразы.

What Hoare and Knuth are really saying is that software engineers
should worry about other issues (such as good algorithm design and
good implementations of those algorithms) before they worry about
micro-optimizations such as how many CPU cycles a particular
statement consumes.

К прочтению:

* The Fallacy of Premature Optimization (обязательно!)
http://www.acm.org/ubiquity/views/v7i24_fallacy.html

=====================================================================

--
Best regards,
Gena
Subject Author Posted

null pointer dereference vulnerability in 0.1.0-0.8.13 Attachments

Igor Sysoev October 26, 2009 02:54PM

Re: null pointer dereference vulnerability in 0.1.0-0.8.13

Anton V. Antonenko October 26, 2009 03:22PM

Re: null pointer dereference vulnerability in 0.1.0-0.8.13

Igor Sysoev October 26, 2009 04:48PM

Re: null pointer dereference vulnerability in 0.1.0-0.8.13

Adrenalin October 26, 2009 06:16PM

Re: null pointer dereference vulnerability in 0.1.0-0.8.13

San October 26, 2009 06:58PM

Re: null pointer dereference vulnerability in 0.1.0-0.8.13

Igor Sysoev October 27, 2009 02:06AM

Re: null pointer dereference vulnerability in 0.1.0-0.8.13

Михаил Монашёв October 27, 2009 05:26PM

Re: null pointer dereference vulnerability in 0.1.0-0.8.13

Executier Godlike October 27, 2009 07:06PM

Re: null pointer dereference vulnerability in 0.1.0-0.8.13

Gena Makhomed October 28, 2009 07:28AM

Re: null pointer dereference vulnerability in 0.1.0-0.8.13

Executier Godlike October 28, 2009 11:24AM

"premature optimization is the root of all evil"

Gena Makhomed October 28, 2009 03:54PM

Re: "premature optimization is the root of all evil"

Kostya Alexandrov October 28, 2009 04:44PM

Re: "premature optimization is the root of all evil"

Executier Godlike October 29, 2009 05:38AM

Re: "premature optimization is the root of all evil"

Executier Godlike October 29, 2009 05:42AM

Re: "premature optimization is the root of all evil"

Gena Makhomed October 29, 2009 07:04AM

Re: "premature optimization is the root of all evil"

Pavel Labushev October 29, 2009 09:44AM

Re: null pointer dereference vulnerability in 0.1.0-0.8.13

Михаил Монашёв October 28, 2009 11:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 144
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready