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. Application performance problems

Application performance problems

Scheduled Pinned Locked Moved C#
performancehelp
12 Posts 10 Posters 0 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.
  • B Offline
    B Offline
    belyhits
    wrote on last edited by
    #1

    Hello coders I want to know what will be the main features we have to use to increase application performance. Specially for data updations. There are many available but I want to know the best one. Any help.

    M D P R P 9 Replies Last reply
    0
    • B belyhits

      Hello coders I want to know what will be the main features we have to use to increase application performance. Specially for data updations. There are many available but I want to know the best one. Any help.

      M Offline
      M Offline
      Mario Majcica
      wrote on last edited by
      #2

      What kind of app, in witch context, made with witch technology??? Give as more details, in this way it is too generic!

      1 Reply Last reply
      0
      • B belyhits

        Hello coders I want to know what will be the main features we have to use to increase application performance. Specially for data updations. There are many available but I want to know the best one. Any help.

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

        This really is very generic. You may make use of profiler to see where the loop holes are and then fix them. Since you are speaking of data updations, here are few things to take care of: 1. Connections should be used wisely. 2. Proper indexing. 3. Efficient queries.

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

        1 Reply Last reply
        0
        • B belyhits

          Hello coders I want to know what will be the main features we have to use to increase application performance. Specially for data updations. There are many available but I want to know the best one. Any help.

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          Don't repost questions. You could simply have updated your other question to clarify it.

          Forgive your enemies - it messes with their heads

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

          1 Reply Last reply
          0
          • B belyhits

            Hello coders I want to know what will be the main features we have to use to increase application performance. Specially for data updations. There are many available but I want to know the best one. Any help.

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

            Calling the same method twice will definitely effect performance and response times

            "You get that on the big jobs."

            1 Reply Last reply
            0
            • B belyhits

              Hello coders I want to know what will be the main features we have to use to increase application performance. Specially for data updations. There are many available but I want to know the best one. Any help.

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

              Database related? Reuse Connections, Commands, and Parameters as much as possible -- don't keep instantiating and disposing them.

              R 1 Reply Last reply
              0
              • P PIEBALDconsult

                Database related? Reuse Connections, Commands, and Parameters as much as possible -- don't keep instantiating and disposing them.

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

                I don't think that is quite right. Under the covers, .NET maintains a connection pool so it is best to open the connection, do the work and then close it. Use using, create the connection, command and parameters. Do the work and get out of there.

                "You get that on the big jobs."

                P 1 Reply Last reply
                0
                • B belyhits

                  Hello coders I want to know what will be the main features we have to use to increase application performance. Specially for data updations. There are many available but I want to know the best one. Any help.

                  G Offline
                  G Offline
                  GuyThiebaut
                  wrote on last edited by
                  #8

                  There is not one answer because it depends on what your app is doing - having said that here are 3 things I have learnt from experience. (1)If you do not need to refresh or send information to a form then don't - screen refreshes are expensive. (2)If you can sleep a thread then do - looping though a thread waiting for something to happen is expensive. (3)With reference to 2 above - make your application as event driven as you can so that you are never waiting for something to happen.

                  Continuous effort - not strength or intelligence - is the key to unlocking our potential.(Winston Churchill)
                  1 Reply Last reply
                  0
                  • R RobCroll

                    I don't think that is quite right. Under the covers, .NET maintains a connection pool so it is best to open the connection, do the work and then close it. Use using, create the connection, command and parameters. Do the work and get out of there.

                    "You get that on the big jobs."

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

                    Yes, open and close it, don't dispose of it.

                    RobCroll wrote:

                    Use using, create the connection, command and parameters

                    Absolutely not.

                    1 Reply Last reply
                    0
                    • B belyhits

                      Hello coders I want to know what will be the main features we have to use to increase application performance. Specially for data updations. There are many available but I want to know the best one. Any help.

                      D Offline
                      D Offline
                      dongye0622
                      wrote on last edited by
                      #10

                      This information may give you some help.http://global.sjzp.com/[^]

                      1 Reply Last reply
                      0
                      • B belyhits

                        Hello coders I want to know what will be the main features we have to use to increase application performance. Specially for data updations. There are many available but I want to know the best one. Any help.

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

                        Hi, We need frequent data updations in real time updating application like online treading and like these others. I will suggest you to go for dapfor .net grid which is capable in real-time data processing like real-time data updating, real-time data highlighting, real-time data sorting and real -time data filtering. Cheers,

                        1 Reply Last reply
                        0
                        • B belyhits

                          Hello coders I want to know what will be the main features we have to use to increase application performance. Specially for data updations. There are many available but I want to know the best one. Any help.

                          realJSOPR Offline
                          realJSOPR Offline
                          realJSOP
                          wrote on last edited by
                          #12

                          Over 52 MILLION Google results for ".net performance best practices"[^]

                          ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                          -----
                          You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                          -----
                          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                          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