Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Factors which effect our application performance

Factors which effect our application performance

Scheduled Pinned Locked Moved C#
performance
14 Posts 9 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Pete OHanlon

    Badly written code. Lack of knowledge.

    Forgive your enemies - it messes with their heads

    My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

    P Offline
    P Offline
    Peter_in_2780
    wrote on last edited by
    #3

    You forgot not enough homework P

    Software rusts. Simon Stephenson, ca 1994.

    1 Reply Last reply
    0
    • B belyhits

      Hi, I want to know, what are the major factors which effect our application performance, including all or any.

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #4

      1. Bad design. 2. Bad programming. 3. Inefficient hardware.

      "The worst code you'll come across is code you wrote last year.", wizardzz[^]

      1 Reply Last reply
      0
      • B belyhits

        Hi, I want to know, what are the major factors which effect our application performance, including all or any.

        R Offline
        R Offline
        RobCroll
        wrote on last edited by
        #5

        Poor architecture and rigid development environments. Poor architecture speaks for itself. If the architect gets it wrong, no number of builders will fix the problem, the house is going to fall down. Also rigid development environments mean developers are put in there place and not given the freedom to refractor the code. An example I clearly remember was a situation where a number of methods were passing many parameters and requesting the same data multiple times. By encapsulating the parameters, the methods became a lot more maintainable and only had to do the work once. This is not something an architect is in a position to envisage. Senior developers need the freedom to pull on the cowboy boots from time to time. They also need to keep an open mind and an open door to junior developers.

        "You get that on the big jobs."

        P J 2 Replies Last reply
        0
        • R RobCroll

          Poor architecture and rigid development environments. Poor architecture speaks for itself. If the architect gets it wrong, no number of builders will fix the problem, the house is going to fall down. Also rigid development environments mean developers are put in there place and not given the freedom to refractor the code. An example I clearly remember was a situation where a number of methods were passing many parameters and requesting the same data multiple times. By encapsulating the parameters, the methods became a lot more maintainable and only had to do the work once. This is not something an architect is in a position to envisage. Senior developers need the freedom to pull on the cowboy boots from time to time. They also need to keep an open mind and an open door to junior developers.

          "You get that on the big jobs."

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #6

          RobCroll wrote:

          pull on the cowboy boots

          To squash bugs in the corners?

          1 Reply Last reply
          0
          • B belyhits

            Hi, I want to know, what are the major factors which effect our application performance, including all or any.

            R Offline
            R Offline
            Ravi_Alienware
            wrote on last edited by
            #7

            But after any code performance some other things also matter like : put huge data into session like multiple tables. And all the repeated images which I want to show on our application, may not be done cached.

            1 Reply Last reply
            0
            • B belyhits

              Hi, I want to know, what are the major factors which effect our application performance, including all or any.

              J Offline
              J Offline
              jschell
              wrote on last edited by
              #8

              In general. 1. Requirements - most impact 2. Architecture 3. Design 4. Implementation - least impact For some limited domains there can be differences in the above. For example embedded device drivers could see performance impacts due to the last item.

              1 Reply Last reply
              0
              • R RobCroll

                Poor architecture and rigid development environments. Poor architecture speaks for itself. If the architect gets it wrong, no number of builders will fix the problem, the house is going to fall down. Also rigid development environments mean developers are put in there place and not given the freedom to refractor the code. An example I clearly remember was a situation where a number of methods were passing many parameters and requesting the same data multiple times. By encapsulating the parameters, the methods became a lot more maintainable and only had to do the work once. This is not something an architect is in a position to envisage. Senior developers need the freedom to pull on the cowboy boots from time to time. They also need to keep an open mind and an open door to junior developers.

                "You get that on the big jobs."

                J Offline
                J Offline
                jschell
                wrote on last edited by
                #9

                RobCroll wrote:

                An example I clearly remember was a situation where a number of methods were passing many parameters and requesting the same data multiple times. By encapsulating the parameters, the methods became a lot more maintainable and only had to do the work once. This is not something an architect is in a position to envisage.

                And by doing only that by what percentage was the performance of the application reduced?

                R 1 Reply Last reply
                0
                • J jschell

                  RobCroll wrote:

                  An example I clearly remember was a situation where a number of methods were passing many parameters and requesting the same data multiple times. By encapsulating the parameters, the methods became a lot more maintainable and only had to do the work once. This is not something an architect is in a position to envisage.

                  And by doing only that by what percentage was the performance of the application reduced?

                  R Offline
                  R Offline
                  RobCroll
                  wrote on last edited by
                  #10

                  :) It didn't reduce performance, it improved it. Didn't benchmark the change but it reduced requests to the database by approx 66%

                  "You get that on the big jobs."

                  J 1 Reply Last reply
                  0
                  • B belyhits

                    Hi, I want to know, what are the major factors which effect our application performance, including all or any.

                    R Offline
                    R Offline
                    robertalis
                    wrote on last edited by
                    #11

                    Hello, If we talk about real time we can perform various data processing in real time like data updating, data highlighting, data sorting, data filtering and data grouping which is application based. I will suggest you a custom component, which will help you to increase your application performance http://www.dapfor.com/Feature.aspx?id=performance[^]

                    1 Reply Last reply
                    0
                    • R RobCroll

                      :) It didn't reduce performance, it improved it. Didn't benchmark the change but it reduced requests to the database by approx 66%

                      "You get that on the big jobs."

                      J Offline
                      J Offline
                      jschell
                      wrote on last edited by
                      #12

                      Requests? Not sure I undestand that. If I call a proc with one param or 50 the proc call itself is still singular. Now in might be that the driver uses more IP packets for more parameters but if that is significant then one might look for another driver and even another database. And certainly one would reduce all procs to use a minimal number of params or none. So in that case it would not be a lot but rather that it was using any at all.

                      R 1 Reply Last reply
                      0
                      • J jschell

                        Requests? Not sure I undestand that. If I call a proc with one param or 50 the proc call itself is still singular. Now in might be that the driver uses more IP packets for more parameters but if that is significant then one might look for another driver and even another database. And certainly one would reduce all procs to use a minimal number of params or none. So in that case it would not be a lot but rather that it was using any at all.

                        R Offline
                        R Offline
                        RobCroll
                        wrote on last edited by
                        #13

                        Can't really give a code snippet but to give an idea

                        call ClassLib1.DoStuff(a, b, c, d)
                        getData e, f, g, h.
                        call ClassLib2.DoMoreStuff(a, b, c, d, e)
                        getData i, j, k, l.

                          call ClassLib3.EvenMoreStuff(a, b, c, d, e, f)
                                     getData i, j, k, z //Hang on we already got most of this in DoMoreStuff
                        

                        So instead:
                        aClass = new aClass() //Add a, b, c, d
                        ClassLib1.DoStuff(aClass)
                        getData e, f, g, h.
                        //Add e, f, g, h to aClass

                          call ClassLib2.DoMoreStuff(aClass)
                                     getData i, j, k, l.
                                     //Add i, j, k, l to aClass
                        
                          call ClassLib3.EvenMoreStuff(aClass)
                                     //don't need to getData i, j, k we already have it
                                     getData z 
                                     //Add  to aClass
                        

                        Now you can start avoiding hammering resourses and for me at least, ClassLib3.EvenMoreStuff(a, b, c, d, e, f, z) is not the most maintainable code. Hope that makes sense

                        "You get that on the big jobs."

                        J 1 Reply Last reply
                        0
                        • R RobCroll

                          Can't really give a code snippet but to give an idea

                          call ClassLib1.DoStuff(a, b, c, d)
                          getData e, f, g, h.
                          call ClassLib2.DoMoreStuff(a, b, c, d, e)
                          getData i, j, k, l.

                            call ClassLib3.EvenMoreStuff(a, b, c, d, e, f)
                                       getData i, j, k, z //Hang on we already got most of this in DoMoreStuff
                          

                          So instead:
                          aClass = new aClass() //Add a, b, c, d
                          ClassLib1.DoStuff(aClass)
                          getData e, f, g, h.
                          //Add e, f, g, h to aClass

                            call ClassLib2.DoMoreStuff(aClass)
                                       getData i, j, k, l.
                                       //Add i, j, k, l to aClass
                          
                            call ClassLib3.EvenMoreStuff(aClass)
                                       //don't need to getData i, j, k we already have it
                                       getData z 
                                       //Add  to aClass
                          

                          Now you can start avoiding hammering resourses and for me at least, ClassLib3.EvenMoreStuff(a, b, c, d, e, f, z) is not the most maintainable code. Hope that makes sense

                          "You get that on the big jobs."

                          J Offline
                          J Offline
                          jschell
                          wrote on last edited by
                          #14

                          Looks like a reduction in replicative data retrieval in proc chains. That has nothing to do with the number of parameters however.

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups