Главная страница


ru.cgi.perl

 
 - RU.CGI.PERL ------------------------------------------------------------------
 From : Ruslan Bondarev                      2:463/94.12    30 Dec 2001  00:04:13
 To : Pavel V. Reich
 Subject : Re: CGI.pm: POST отделить от GET
 -------------------------------------------------------------------------------- 
 
 Пятница Декабрь 28 2001 21:07, Pavel V. Reich -> Ruslan Bondarev:
 
  PR> Вот сколько читаю эху - одного не пойму: почему идут постоянные споры
  PR> CGI.pm vs процедурки руками? Hу если экономить время исполнения -
  PR> тогда лучше писать на С/С++ (а то и на ассемблере ;). Зачем люди
  PR> мучаются и пишут самостоятельно второй велосипед CGI.pm?
 
     не только CGI.pm; уже есть попытки переписать более серьезные скрипты, типа 
 Net::DNS. это оправдано, если хостинг не предоставляет нужных модулей. если же
 предоставляет, то причина кроется в:
     желании оптимизировать свою программу; боязнь прочитать документацию к
 готовому решению; недоверие к чужим программам.
     два последних случая относятся к компетенции психоаналитиков, а по поводу
 первого хорошо рассказывает Joseph Newcomer в своей статье "Optimization: Your
 worst enemy". позволю себе процитировать.
 
 === Start of Windows Clipboard ===
 A reasonably skilled programmer will not write a grossly inefficient program. At
 least not deliberately. Optimization is what you do when the performance is
 insufficient. Sometimes the optimizations are easy, sometimes they are hard.
 Sometimes they fly in the face of your original design, and sometimes they
 require that you grossly violate your beautiful abstractions in your class
 system. But always, and I repeat, *always*, my experience has been that no
 programmer has *ever* been able to predict or analyze where performance
 bottlenecks are *without* data. No matter where you think the time is going, you
 will be surprised to discover that it is going somewhere else.
 
 You optimize because you have a problem in performance. Sometimes it is
 computational optimization: your bitmap manipulation is just too slow. Sometimes
 it is data access optimization: it just takes too long to get the data into the 
 machine. And sometimes it is algorithmic optimization: you're doing it wrong. If
 you don't understand the difference between an n^2 sort and an n log n sort,
 you're probably already in trouble, but that knowledge alone is not useful.
 
 Some years ago, I was working on a complex program which had to perform a
 semantic cross-check between the "statements" of the program and the
 "declarations" (it was actually a 4GL constraint equation system, but the
 details don't matter). I discovered that the operation was of n^3 complexity
 (well, actually m * n^2, but m and n would be of comparable size most of the
 time). There are three paths that you can follow here:
 
 - The naive path. You don't even realize you've got an n^3 problem. You're
 probably in trouble, because if it is the bottleneck, you didn't know it was
 there.
 - The formal academic path. You realize you've got an n^3 problem, and know it
 is intrinsically evil, and rewrite your algorithms.
 - The engineering path. You realize you've got an n^3 problem, but you
 instrument the system to discover its actual impact on the system.
 
 The only valid path to optimization is the engineering path. I measured the
 performance, and on the largest "real" example we had, I discovered that n was
 almost always 1, sometimes 2, rarely 3, and had exactly one instance of 4. This 
 was too small to matter. Sure, the algorithm was n^3, but with n that small,
 there was no need to rewrite the code. Rewriting the code would have been
 incredibly complex, delayed the whole project for a couple weeks, and used up a 
 couple pointers in each node of the tree in an already-tight minicomputer
 address space.
 === End of Windows Clipboard ===
 
 ... bye.
 --- Медленно любила, пережевывая...
  * Origin:  (2:463/94.12)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 CGI.pm: POST отделить от GET   Sergio Prigozhy   27 Nov 2001 14:55:50 
 CGI.pm: POST отделить от GET   Andrey Rookin   27 Nov 2001 16:22:12 
 Re: CGI.pm: POST отделить от GET   Artem Chuprina   27 Nov 2001 17:16:09 
 CGI.pm: POST отделить от GET   George   28 Nov 2001 14:55:18 
 Re: CGI.pm: POST отделить от GET   Artem Chuprina   29 Nov 2001 12:22:10 
 CGI.pm: POST отделить от GET   George   01 Dec 2001 14:25:32 
 Re: CGI.pm: POST отделить от GET   Artem Chuprina   02 Dec 2001 15:21:35 
 Hа: CGI.pm: POST отделить от GET   Alexander V. Gaiduk   29 Nov 2001 15:46:41 
 Re: Hа: CGI.pm: POST отделить от GET   Artem Chuprina   29 Nov 2001 16:05:14 
 Hа: Hа: CGI.pm: POST отделить от GET   Alexander V. Gaiduk   29 Nov 2001 17:02:38 
 Re: Hа: Hа: CGI.pm: POST отделить от GET   Artem Chuprina   29 Nov 2001 18:22:57 
 Hа: Hа: Hа: CGI.pm: POST отделить от GET   Alexander V. Gaiduk   30 Nov 2001 11:53:39 
 Re: Hа: Hа: Hа: CGI.pm: POST отделить от GET   Ruslan Bondarev   01 Dec 2001 12:49:38 
 Moderatorial [+] (Re: CGI.pm: POST отделить от GET)   Comoderator of RU.CGI.PERL   02 Dec 2001 15:25:39 
 Re: CGI.pm: POST отделить от GET   Ruslan Bondarev   08 Dec 2001 12:45:57 
 Re: CGI.pm: POST отделить от GET   Artem Chuprina   10 Dec 2001 11:34:15 
 CGI.pm: POST отделить от GET   pavel kurnosoff   10 Dec 2001 23:18:43 
 Re: CGI.pm: POST отделить от GET   Ruslan Bondarev   11 Dec 2001 21:11:57 
 CGI.pm: POST отделить от GET   pavel kurnosoff   13 Dec 2001 01:57:54 
 CGI.pm: POST отделить от GET   Alexander Kostiuchenko   13 Dec 2001 13:47:23 
 CGI.pm: POST отделить от GET   pavel kurnosoff   14 Dec 2001 14:51:25 
 Re: CGI.pm: POST отделить от GET   Ruslan Bondarev   13 Dec 2001 21:22:38 
 CGI.pm: POST отделить от GET   pavel kurnosoff   15 Dec 2001 03:16:42 
 Re: CGI.pm: POST отделить от GET   Ruslan Bondarev   19 Dec 2001 22:15:42 
 CGI.pm: POST отделить от GET   pavel kurnosoff   21 Dec 2001 14:09:35 
 CGI.pm: POST отделить от GET   Alexander Kostiuchenko   12 Dec 2001 15:10:35 
 CGI.pm: POST отделить от GET   pavel kurnosoff   13 Dec 2001 03:06:48 
 CGI.pm: POST отделить от GET   Alexey Gradovtsev   18 Dec 2001 17:14:32 
 Re: CGI.pm: POST отделить от GET   Artem Chuprina   18 Dec 2001 18:21:05 
 Re: CGI.pm: POST отделить от GET   Pavel Ammosov   19 Dec 2001 19:24:30 
 CGI.pm: POST отделить от GET   Alexey Gradovtsev   20 Dec 2001 15:26:23 
 Re: CGI.pm: POST отделить от GET   Ruslan Bondarev   19 Dec 2001 21:41:00 
 CGI.pm: POST отделить от GET   Alexey Gradovtsev   20 Dec 2001 15:30:21 
 Re: CGI.pm: POST отделить от GET   Ruslan Bondarev   23 Dec 2001 23:43:00 
 CGI.pm: POST отделить от GET   Alexey Gradovtsev   27 Dec 2001 16:39:52 
 Re: CGI.pm: POST отделить от GET   Ruslan Bondarev   27 Dec 2001 21:24:20 
 CGI.pm: POST отделить от GET   Alexey Gradovtsev   28 Dec 2001 17:44:13 
 Re: CGI.pm: POST отделить от GET   Ruslan Bondarev   30 Dec 2001 01:00:37 
 Re: CGI.pm: POST отделить от GET   Pavel V. Reich   28 Dec 2001 22:07:30 
 Re: CGI.pm: POST отделить от GET   Ruslan Bondarev   30 Dec 2001 00:04:13 
 Re: CGI.pm: POST отделить от GET   Andrey Sapozhnikov   30 Dec 2001 14:55:24 
 За жизнь. Было: Re: CGI.pm: POST отделить от GET   Andrey Sapozhnikov   30 Dec 2001 15:52:09 
 Re: За жизнь. Было: Re: CGI.pm: POST отделить от GET   Artem Chuprina   03 Jan 2002 14:28:51 
 Re: За жизнь. Было: Re: CGI.pm: POST отделить от GET   Andrey Sapozhnikov   03 Jan 2002 18:44:45 
 Re: За жизнь. Было: Re: CGI.pm: POST отделить от GET   Ruslan Bondarev   03 Jan 2002 21:51:55 
 Re: За жизнь. Было: Re: CGI.pm: POST отделить от GET   Artem Chuprina   04 Jan 2002 12:10:35 
 За жизнь. Было: Re: CGI.pm: POST отделить от GET   Alexander Bolotnov   04 Jan 2002 23:39:28 
 Re: CGI.pm: POST отделить от GET   Nikolay A. Panov   25 Dec 2001 14:56:35 
 CGI.pm: POST отделить от GET   Alexey Gradovtsev   27 Dec 2001 16:42:16 
 Hа: Hа: Hа: CGI.pm: POST отделить от GET   Andrej Ramaszeuski   05 Dec 2001 00:04:00 
 Hа: Hа: Hа: CGI.pm: POST отделить от GET   Alexander V. Gaiduk   05 Dec 2001 16:26:55 
 Hа: Hа: CGI.pm: POST отделить от GET   Alexey Gradovtsev   30 Nov 2001 13:45:32 
 Re: Hа: Hа: CGI.pm: POST отделить от GET   Artem Chuprina   02 Dec 2001 15:19:34 
 Hа: CGI.pm: POST отделить от GET   Andrey Rookin   30 Nov 2001 14:23:19 
 Hа: CGI.pm: POST отделить от GET   Alexander V. Gaiduk   03 Dec 2001 13:35:20 
 CGI.pm: POST отделить от GET   Andrej Ramaszeuski   04 Dec 2001 23:59:18 
 Re: CGI.pm: POST отделить от GET   Artem Chuprina   05 Dec 2001 13:51:43 
 Hа: CGI.pm: POST отделить от GET   Alexander V. Gaiduk   05 Dec 2001 16:16:35 
 Re: Hа: CGI.pm: POST отделить от GET   Artem Chuprina   05 Dec 2001 16:38:01 
 Re: Hа: CGI.pm: POST отделить от GET   vitus@ice.ru   05 Dec 2001 19:11:27 
 CGI.pm: POST отделить от GET   Alexey Volkov   06 Dec 2001 09:11:49 
 CGI.pm: POST отделить от GET   Dima Marakasov   03 Dec 2001 01:52:15 
Архивное /ru.cgi.perl/27783c2e4efa.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional