Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Optimization

Name: Anonymous 2007-08-06 19:54 ID:H9Dv1bgb

What's your style. Do you constantly think about performance and put grate effort to make your code as fast as possible or do you just make it work and sort out performance issues when they bite? Somewhere between? Do you profile your code or relay on your knowledge?

Just thinking. For example, I need a relatively simple template engine, I could easily implement a high performance version in 100 - 150 lines of code, or I could just use regular expressions and get it around 50 lines..

Name: Anonymous 2007-08-06 19:56 ID:H9Dv1bgb

And here's an interesting bit of trivia: did you know that the ASP.NET page parser is built with regular expressions, and not only the v1.x, but the Whidbey version too.

Name: Anonymous 2007-08-06 19:57 ID:QzVaAFBs

Somewhere between. If it's not fast enough, I profile.

Name: Anonymous 2007-08-06 20:00 ID:8Xpl2fPN

Same as >>3.

Architecturally, my code is usually designed to scale. The code itself is written to be as simple as readable as possible unless it later turns out to be a bottleneck.

Name: Anonymous 2007-08-06 20:10 ID:H9Dv1bgb

>>4
Yes, readability is another important factor. Usually slower, but simpler and more flexible code is preferable over faster, but harder to understand and modify.

But how are you "somewhere between"? You write your code to be as simple as possible, solving performance issues only later.

Name: Anonymous 2007-08-06 20:17 ID:8Xpl2fPN

>>5
"Somewhere between" because of the architecture. The code is as simple as possible, but the architecture is designed so that there aren't any (known) bottlenecks.

It's easy to change some code to be performant. It's usually bloody hard to do it if it's an artifact of your program design. As a result, best to take care of it up-front.

Name: Anonymous 2011-03-31 12:05

I am the phantom autist

Name: Anonymous 2011-03-31 12:05

I am the phantom autist

Name: Anonymous 2013-09-01 13:48



:::::::::::::::::::::::  __,,,,....,,__      |         う
:: :: :: :: .,. '"´_,.r-r‐,-、`' 、   |.     わ .ら
: : : : ,.'  _r' イ_,.-‐'- '<,ヘ._  |.     ね や
: : : :/ _r',ゝ'"   /i  i , `ヽ! | : .ヒ   : ま
: :  i 'Y´ ,ハ __/_| ハ‐ハ! ,ゝ | : マ  : し
   | ノ  !イァ;‐-!、レ' !ィ'r、!ハヽ. | : そ   : い
  イ ´!イ.Y),ゞ-'   └',!Yi ̄ .| :. う
   ハ !  .(ハ "   '  ,ハソ ∠. : で
  〈 ノ  ,ヘiY>.、.,_´,.ィ'´iYヘ〉 `ヽ、.,_________
   `ヽr'ゝY!イ´\_!`ヽrYi、
    ノ ,. '}><{\ /:i」イ}><{ ',
     /   ム!::::`::/ヽ;:::ヽ. ヽ.
    ノ    ';:::::::/  ハ::::::i  >
   く/   i ,ゝ:::kニヽヘ!:イイ´

Name: Anonymous 2013-09-01 15:19




                / レ'7      ノ)‐ ''"  /
              ト、/    |  ,. ''"´       }/|
              | '      ハ∠、        ' ./
              _.ゝ_.. -‐──- 、       /
          (ゝ-‐'´ '´           `' < イ -‐ァ
           >'" /           ヽ、 \. /
        ./    {       `ヽ     '   ∨
        /  /  .∧     ト、_」ニ、|  ,ハ ,」二ヽ|  Zun♪
        | l {.   !‐ァ 、   |'´ ん' ハ∨  //:::(ヽヽ
        |八 \  |「lヽ `ヽ}  j_zソリ ハ |::7`!::} .| |  Zun♪
          \ レハ{ り       "7 /  |::| |/ / .!
     ♪ ~ {7 l7"  '        レヘ   ソ ' ' ∧
            ,| 八   lr ̄ヽ    リ イ     / \
          /レ'}  \  、 ノ    / イ| ____,ム  , )
         ;  / _ノノヽ、_   イ /「r) (r] )/レ'
         | レ'´ ∨`ヽ,人|     ト、{ |_」__l」ソ
         「`Tこ] __,r'‐ァ'"´/:::::}/    ト、ヽ
         L)_r_l」´ |\::/ムイ/:::::;:/     ; }::/
          ;    ! ./  /::::|::::|:::://    ,' /´
          /    |;' /:::::::!::::!:イ /    .//
        ./     l{ くr-、_」-‐' /    .//
       /      ;|  |(>||   ;      .//
        {    ,イ|  |   l||   {   /l7
        、_/ /   ;'   リ   ` ‐''"   '
           /   ; 十./        |
           /   /  /           |
          r'   ./  /          {
         /> 、/  /           ヽ、
        ./\ l   >k.,_         _/:::ヽ
   
   

Don't change these.
Name: Email:
Entire Thread Thread List