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. Improve the output of desktop application..?

Improve the output of desktop application..?

Scheduled Pinned Locked Moved C#
csharpalgorithmsperformancetutorialquestion
9 Posts 5 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.
  • P Offline
    P Offline
    Pankaj Joshi
    wrote on last edited by
    #1

    Hello experts, I develop and desktop application using C#.NET 2005. I want to improve the functionality of the application and want to do some code optimization. Is their any idea...? Like how to make classes, variables declaration etc types of things...?

    Regards Pankaj Joshi If you want to shape your dreams into reality, please wake-up...

    C 1 Reply Last reply
    0
    • P Pankaj Joshi

      Hello experts, I develop and desktop application using C#.NET 2005. I want to improve the functionality of the application and want to do some code optimization. Is their any idea...? Like how to make classes, variables declaration etc types of things...?

      Regards Pankaj Joshi If you want to shape your dreams into reality, please wake-up...

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I'm sure you already know how to create classes and variables. Really, the question is, what makes you think it needs improving, what are you trying to improve and where are the bottlenecks ?

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      P 1 Reply Last reply
      0
      • C Christian Graus

        I'm sure you already know how to create classes and variables. Really, the question is, what makes you think it needs improving, what are you trying to improve and where are the bottlenecks ?

        Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        P Offline
        P Offline
        Pankaj Joshi
        wrote on last edited by
        #3

        Ya you are right I know how to make class and variables... But I read some where use sealed classes instead of public class if you don't want to inherit it again so that make your code faster. use generics instead of hash table and array list etc. So I need the guidelines what to do and what not to make efficient C#.net code.

        Regards Pankaj Joshi If you want to shape your dreams into reality, please wake-up...

        C N 2 Replies Last reply
        0
        • P Pankaj Joshi

          Ya you are right I know how to make class and variables... But I read some where use sealed classes instead of public class if you don't want to inherit it again so that make your code faster. use generics instead of hash table and array list etc. So I need the guidelines what to do and what not to make efficient C#.net code.

          Regards Pankaj Joshi If you want to shape your dreams into reality, please wake-up...

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Pankaj - Joshi wrote:

          But I read some where use sealed classes instead of public class if you don't want to inherit it again so that make your code faster.

          Possible. I doubt it has a huge effect tho.

          Pankaj - Joshi wrote:

          use generics instead of hash table and array list etc.

          Always use the generic containers, that's a no brainer. It will only speed things up for containers of value types, but. No boxing, you see.

          Pankaj - Joshi wrote:

          So I need the guidelines what to do and what not to make efficient C#.net code.

          Again, it's very unlikely that you've written code that will get a whole lot faster if you change what sort of containers you use. What sort of app is it, and what makes you think it could be faster ?

          Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

          P 1 Reply Last reply
          0
          • P Pankaj Joshi

            Ya you are right I know how to make class and variables... But I read some where use sealed classes instead of public class if you don't want to inherit it again so that make your code faster. use generics instead of hash table and array list etc. So I need the guidelines what to do and what not to make efficient C#.net code.

            Regards Pankaj Joshi If you want to shape your dreams into reality, please wake-up...

            N Offline
            N Offline
            Nouman Bhatti
            wrote on last edited by
            #5

            This is something on which u r the best one to decide as u see the code more than anybody on codeproject so i think you have to decide what to you and what not to.

            P 1 Reply Last reply
            0
            • N Nouman Bhatti

              This is something on which u r the best one to decide as u see the code more than anybody on codeproject so i think you have to decide what to you and what not to.

              P Offline
              P Offline
              Pankaj Joshi
              wrote on last edited by
              #6

              Ya I already know that.... But I want to know what are the best ways to make your code efficient..?

              Regards Pankaj Joshi If you want to shape your dreams into reality, please wake-up...

              M 1 Reply Last reply
              0
              • C Christian Graus

                Pankaj - Joshi wrote:

                But I read some where use sealed classes instead of public class if you don't want to inherit it again so that make your code faster.

                Possible. I doubt it has a huge effect tho.

                Pankaj - Joshi wrote:

                use generics instead of hash table and array list etc.

                Always use the generic containers, that's a no brainer. It will only speed things up for containers of value types, but. No boxing, you see.

                Pankaj - Joshi wrote:

                So I need the guidelines what to do and what not to make efficient C#.net code.

                Again, it's very unlikely that you've written code that will get a whole lot faster if you change what sort of containers you use. What sort of app is it, and what makes you think it could be faster ?

                Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

                P Offline
                P Offline
                Pankaj Joshi
                wrote on last edited by
                #7

                I know I know I know Yes I already know what I written and how I do that... I also want to know what are the best ways to make your code efficient..? In simple language I'm talking about code optimization ... ;P Why are you talking about the other things...X|

                Regards Pankaj Joshi If you want to shape your dreams into reality, please wake-up...

                D 1 Reply Last reply
                0
                • P Pankaj Joshi

                  Ya I already know that.... But I want to know what are the best ways to make your code efficient..?

                  Regards Pankaj Joshi If you want to shape your dreams into reality, please wake-up...

                  M Offline
                  M Offline
                  Malcolm Smart
                  wrote on last edited by
                  #8

                  Pankaj - Joshi wrote:

                  But I want to know what are the best ways to make your code efficient..?

                  one way would be to change your attitude slightly and not annoy long standing members of this forum. Notice how the answers from CG stopped suddenly? Stop saying 'ya, I already know that'. Define fast. Define slow. How do you know something needs optimising? What is your benchmark for this? If you really think a piece of code is slow, post it here and the comments will flow.

                  Small angry dogs

                  1 Reply Last reply
                  0
                  • P Pankaj Joshi

                    I know I know I know Yes I already know what I written and how I do that... I also want to know what are the best ways to make your code efficient..? In simple language I'm talking about code optimization ... ;P Why are you talking about the other things...X|

                    Regards Pankaj Joshi If you want to shape your dreams into reality, please wake-up...

                    D Offline
                    D Offline
                    Dave Kreskowiak
                    wrote on last edited by
                    #9

                    With that attitude, this[^] is about all you're going to get now. Now, seriously, how hard is it to type that into Google??

                    A guide to posting questions on CodeProject[^]
                    Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                         2006, 2007

                    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