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