Optimizing code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • A Future Computer Scientist

    Optimizing code

    A question: Is it really important to think about optimizing the native code
    or optimizing it for P Code? Or does the code you write make a difference?


  • Robert Berman

    #2
    Re: Optimizing code

    [posted and mailed]

    "A Future Computer Scientist" <theghost@colle geclub.com>
    wrote in news:bkm604$b0k q$1@news3.infoa ve.net:
    [color=blue]
    > A question: Is it really important to think about
    > optimizing the native code or optimizing it for P Code? Or
    > does the code you write make a difference?
    >
    >[/color]
    How well can an optimizer optimize realy bad code. If you
    want very fast well designed code, create it yourself. Don't
    rely on M$ to do it for you. They simply want to provide
    preogramming tools to people who are not programmers. For
    example, your cat should be able to reasonly desigm a web page
    for a cat charity and be perfectly willing to pay a paw and a
    whisker for the tool to do so.

    The distinction between you as a potentially professional
    programmer, and your cat is that you, hopefully, haave spent
    some time on theory and you know that Knuth is not a knot on a
    sailboat.

    If you want optimal code, write it.

    --
    Robert L. Berman
    Database consultant
    Vulcan Software Services

    Comment

    • cor_blimey

      #3
      Re: Optimizing code

      "Robert Berman" <Notthornmastr@ earthlink.net> Insanely scribbled
      news:LlAbb.5728 5$NM1.43077@new sread2.news.atl .earthlink.net. ..[color=blue]
      > [posted and mailed]
      >
      > "A Future Computer Scientist" <theghost@colle geclub.com>
      > wrote in news:bkm604$b0k q$1@news3.infoa ve.net:
      >[color=green]
      > > A question: Is it really important to think about
      > > optimizing the native code or optimizing it for P Code? Or
      > > does the code you write make a difference?
      > >
      > >[/color]
      > How well can an optimizer optimize realy bad code. If you
      > want very fast well designed code, create it yourself. Don't
      > rely on M$ to do it for you. They simply want to provide
      > preogramming tools to people who are not programmers. For
      > example, your cat should be able to reasonly desigm a web page
      > for a cat charity and be perfectly willing to pay a paw and a
      > whisker for the tool to do so.
      >
      > The distinction between you as a potentially professional
      > programmer, and your cat is that you, hopefully, haave spent
      > some time on theory and you know that Knuth is not a knot on a
      > sailboat.
      >
      > If you want optimal code, write it.
      >
      > --
      > Robert L. Berman
      > Database consultant
      > Vulcan Software Services
      >[/color]

      You're a bit weird aren't you Robert?


      Comment

      • Robert Berman

        #4
        Re: Optimizing code

        "cor_blimey " <no_spam@no_spa m.com> wrote in
        news:4CAbb.617$ pz4.1028041@new sfep1-win.server.ntli .net:
        [color=blue]
        > "Robert Berman" <Notthornmastr@ earthlink.net> Insanely
        > scribbled
        > news:LlAbb.5728 5$NM1.43077@new sread2.news.atl .earthlink.net.
        > ..[color=green]
        >> [posted and mailed]
        >>
        >> "A Future Computer Scientist" <theghost@colle geclub.com>
        >> wrote in news:bkm604$b0k q$1@news3.infoa ve.net:
        >>[color=darkred]
        >> > A question: Is it really important to think about
        >> > optimizing the native code or optimizing it for P Code?
        >> > Or does the code you write make a difference?
        >> >
        >> >[/color]
        >> How well can an optimizer optimize realy bad code. If you
        >> want very fast well designed code, create it yourself.
        >> Don't rely on M$ to do it for you. They simply want to
        >> provide preogramming tools to people who are not
        >> programmers. For example, your cat should be able to
        >> reasonly desigm a web page for a cat charity and be
        >> perfectly willing to pay a paw and a whisker for the tool
        >> to do so.
        >>
        >> The distinction between you as a potentially professional
        >> programmer, and your cat is that you, hopefully, haave
        >> spent some time on theory and you know that Knuth is not a
        >> knot on a sailboat.
        >>
        >> If you want optimal code, write it.
        >>
        >> --
        >> Robert L. Berman
        >> Database consultant
        >> Vulcan Software Services
        >>[/color]
        >
        > You're a bit weird aren't you Robert?
        >
        >
        >[/color]

        Me. Weird? You should meet me cat. He's working on the other
        computer designing a query (cartesian join) for Ralston
        Purina.

        Have a great day, mate.

        --
        Robert L. Berman
        Database consultant
        Vulcan Software Services

        Comment

        • cor_blimey

          #5
          Re: Optimizing code

          HA HA HA HA

          "Robert Berman" <Notthornmastr@ earthlink.net> wrote in message
          news:50Bbb.5211 9$Aq2.43534@new sread1.news.atl .earthlink.net. ..[color=blue]
          > "cor_blimey " <no_spam@no_spa m.com> wrote in
          > news:4CAbb.617$ pz4.1028041@new sfep1-win.server.ntli .net:
          >[color=green]
          > > "Robert Berman" <Notthornmastr@ earthlink.net> Insanely
          > > scribbled
          > > news:LlAbb.5728 5$NM1.43077@new sread2.news.atl .earthlink.net.
          > > ..[color=darkred]
          > >> [posted and mailed]
          > >>
          > >> "A Future Computer Scientist" <theghost@colle geclub.com>
          > >> wrote in news:bkm604$b0k q$1@news3.infoa ve.net:
          > >>
          > >> > A question: Is it really important to think about
          > >> > optimizing the native code or optimizing it for P Code?
          > >> > Or does the code you write make a difference?
          > >> >
          > >> >
          > >> How well can an optimizer optimize realy bad code. If you
          > >> want very fast well designed code, create it yourself.
          > >> Don't rely on M$ to do it for you. They simply want to
          > >> provide preogramming tools to people who are not
          > >> programmers. For example, your cat should be able to
          > >> reasonly desigm a web page for a cat charity and be
          > >> perfectly willing to pay a paw and a whisker for the tool
          > >> to do so.
          > >>
          > >> The distinction between you as a potentially professional
          > >> programmer, and your cat is that you, hopefully, haave
          > >> spent some time on theory and you know that Knuth is not a
          > >> knot on a sailboat.
          > >>
          > >> If you want optimal code, write it.
          > >>
          > >> --
          > >> Robert L. Berman
          > >> Database consultant
          > >> Vulcan Software Services
          > >>[/color]
          > >
          > > You're a bit weird aren't you Robert?
          > >
          > >
          > >[/color]
          >
          > Me. Weird? You should meet me cat. He's working on the other
          > computer designing a query (cartesian join) for Ralston
          > Purina.
          >
          > Have a great day, mate.
          >
          > --
          > Robert L. Berman
          > Database consultant
          > Vulcan Software Services
          >[/color]


          Comment

          • J French

            #6
            Re: Optimizing code

            On Mon, 22 Sep 2003 02:45:58 -0400, "A Future Computer Scientist"
            <theghost@colle geclub.com> wrote:
            [color=blue]
            >A question: Is it really important to think about optimizing the native code
            >or optimizing it for P Code? Or does the code you write make a difference?[/color]

            It really depends on what one means by 'optimize'

            Turning off things like Array Bounds Checking speeds things up
            - but can also hide _real_ problems

            - code that 'breaks' is ... well rather slow

            Mostly speed is obtained by using the right algorithm

            Comment

            • xyz

              #7
              Re: Optimizing code

              I have encountered problems using the "optimize" option. I had one
              program that kept blowing up after I converted from VB4 to VB5.
              Tracing revealed that the problem was happening between the time that
              the subroutine finished executing and the time that the calling
              program was to be given control.

              By specifying "no optimization" the problem went away!

              xyz
              =======
              On Mon, 22 Sep 2003 02:45:58 -0400, "A Future Computer Scientist"
              <theghost@colle geclub.com> wrote:
              [color=blue]
              >A question: Is it really important to think about optimizing the native code
              >or optimizing it for P Code? Or does the code you write make a difference?
              >[/color]

              Comment

              Working...