C# .NET - performance issue

Asked By sankar m on 18-Jan-10 07:04 AM

HI,

I am working in c# .net (Windows Application). However i am using Xml File Concept in my project. while using this my system performace gets down. Is there any way to include the system performance? Any help must be appreciated.


performance issue

Sakshi a replied to sankar m on 18-Jan-10 07:20 AM

follow the best practices suggested my Microsoft,

http://msdn.microsoft.com/en-us/library/ms173196.aspx 

 


Thanks and Regards,
http://www.CodeCollege.NET
http://www.InterviewsGuru.info

 

 

improving XML performance

mv ark replied to sankar m on 18-Jan-10 07:21 AM
This link has a list of best practices & guidelines to improve XML performance - http://msdn.microsoft.com/en-us/library/ms998559.aspx

Answer these Q's

[)ia6l0 iii replied to sankar m on 18-Jan-10 07:21 AM
What do you exactly mean when you say, "XML file concept"?

It all depends on what kind of transformations you are doing with the XML. Are you doing any kind of complex transistions using an XSLT?

Have you considered using the XMLReader that is a fast and readonly forward mode cursor that allows you to do your operations faster if it fits your scenario?

If you are using XmlDocument, then are you storing it inmemory for a longer duration than required? 

How are you traversing/navigating  the DOM  tree?
Re
Huggy Bear replied to sankar m on 18-Jan-10 08:04 AM
What kind of XML operations are you doing? Whatever may be the case, is it such a huge XML data which even slows down your machine. Usually XML processing would be much faster in .net than database operations.
Some tips:
1. If the XML file size is large, use XmlReader instead of XmlDocument.
2. Have a XML schema defined, so that it will improve the performance for sure.

Also I don't understand "Is there any way to include the system performance?". Is it "Is there any way to improve the system performance?"
help
Hello, We're selling an ASP.Net web app you mean putting into a separate virtual directory? I'm not aware of any official best practice regarding this behavior, I guess your customer's requirement might be related to: * They of "execute" since javascript / css are normally don't need to have execute permissions. * To improve performance if the scripts could be shared? Client browser will cache a resource according to based interactions or complex project analysis and dump analysis issues. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS issue. = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = This posting is provided "AS IS" with no warranties, and confers no rights. keywords: Best, Practices, and, script / executable, directories description: Hello, We're selling an ASP.Net web app to
Tips for writing high performance programming and scripting in SQL Server 1. Normalize your tables users are inserting data at the same instance. Use one of SCOPE_IDENTITY or IDENT_CURRENT. The best choice would be SCOPE_IDENTITY as this would give you the identity value from the current s. With the "slammer" virus and many more still outside, it is one of the best practices to be up-to date on the same. Consider this strongly. 26. Using Count(*): The 31. Avoid Un-necessary Indexes: Avoid creating un-necessary indexes on table thinking they would improve your performance. Understand that creating Indexes and maintaining them are overheads that you incur. And SharePoint Developer For latest updates view My Blog Create New Account Article Discussion: Vivek Jagga posted at Tuesday, January 04, 2011 7:52 AM Original Article Jeff Moden
Tips for writing high performance programming and scripting in SQL Server 1. Normalize your tables users are inserting data at the same instance. Use one of SCOPE_IDENTITY or IDENT_CURRENT. The best choice would be SCOPE_IDENTITY as this would give you the identity value from the current s. With the "slammer" virus and many more still outside, it is one of the best practices to be up-to date on the same. Consider this strongly. 26. Using Count(*): The 31. Avoid Un-necessary Indexes: Avoid creating un-necessary indexes on table thinking they would improve your performance. Understand that creating Indexes and maintaining them are overheads that you incur. And
We installed the Sharepoint WIKI on our intranet. I would like to have some policies / procedures for following best practices before all users who have access to it start adding / modifying pages in a random mode to get it. This won't solve all your challenges but it has helped improve the usability. keywords: WIKI, best, practices description: We installed the Sharepoint WIKI on our intranet. I would like to have some policies / procedures for following best practices before all users who have acc
Hello, We have Exchange v. 6.5.7638.1 on a Windows 2003 SP2 Server. I downloaded Exchange Best Practices Analyzer v. 2.8.7926.0. I ran it and have seen some areas I can improve. I do have some questions about 3 of it's suggestions. In a nutshell I All three of these are black and white. Do what they tell you. keywords: Exchange, Best, Practices, Analyzer, results, question description: Hello, We have Exchange v. 6.5.7638.1 on a Windows 2003 SP2 Server. I downloaded Exchange Best Practices Analyzer v. 2.8.7926.0. I ran it and have
Hi, Is there any MSDN or industry standard article that recommends best practices for namespace naming and assembly names? I like to have assembly names same as the ms229002 - - J. Hi Max, Thanks for your post. Thanks Jeroen, because he has given the best answer to your question. I cannot provide any better documentation other than that. Please let customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what situations that require urgent, real-time or phone-based interactions. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS with no warranties, and confers no rights. keywords: Visual, Studio, .NET, project, structure, and, namespace, best, practices description: Hi, Is there any MSDN or industry standard article that recommends best practices
I have a project that I'd like to have use one or the other based on a compile-time switch (). Any thoughts on the best way to handle this? I tried to have to files (myForm.Design1.cs and myForm customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what situations that require urgent, real-time or phone-based interactions. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS with two seperate forms, moving any common code out to a module. - - Jan Hyde keywords: Best, Practices:, Different, Forms, Layout? description: I have a project that I'd like to have two
Installer folders & best practices .NET Framework Hello, I would like to see some guidance on the usage of common I was unable to find such a guidance on usage of installer common folders. The best one is what you have mentioned in MSDN library: Special Folders and Custom Folders (http customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what situations that require urgent, real-time or phone-based interactions. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what need some time to review all the info you sent. Thanks, Schneider keywords: Installer, folders, &, best, practices description: Hello, I would like to see some guidance on the usage of common installer
handling C# .NET 28-Oct-12 07:40 PM could any one send me the best practices of exception handling in cs code and also in stored procedures for 4 + years .net prone to crashing because the application handles such errors. The following list contains suggestions on best practices for handling exceptions: • Know when to set up a try / catch block. For example, you closed. A few basic design concepts will make your program much more robust, and will improve the user experience in the presence of an unexpected error. What do I mean by "improve the user experience in the presence of an unexpected error"? It's not that the stored procedure supports parameters. So, using the sp_executesql stored procedure instead of the EXECUTE statement improve the re-usability of your code. The execution plan of a dynamic statement can be catch block or not. Below is the pattern we have chosen based on experimentation and best practice guidance from the SQL Server team and other SQL Server experts. A test script
We are considering moving to an iSCSI storage solution when we migrate to 2007, but I am a little confused how iSCSI works with regard to disk configuration best practices. For instance, I have seen some recommendations that transaction logs should be on their own an H: volume. Does Exchange think these are physical volumes, at least as far as best practices go? If I put a data store on G:, and transaction logs on H:, will this satisfy best practice requirements even though they are really on the same physical disk? Hope this makes 1) Database1 (1) I guess this all depends on your SAN and your SANS recommended best practices for carving out volumes and luns for exchange. We have exchange 2007 running on