| Emit and MSIL (3 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi Everyone, I am going to use 'emit' to output some MSIL code, but was wondering if generating C# code first, and then pushing it through cs.exe would give me faster code? In other words, does the CS front end compiler do an optimizations that are not included in the 'emit' package's code generator?? Thanks Jake (jwa@javatopia.com) |
|
| Performance issues with the Transfrom XML method of .net Framework. (3 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi, We have created a small application which takes a dataset or a datatable and converts it to Spreadsheet XML for Excel by Using Visual Basic .NET and ASP .NET. The details of the code is as per the article http://support.microsoft.com/default.aspx?scid kb;EN US;Q319180 We are writing into a stream and the xlst file is being used as an embedded resource.(a resource file). The Application works g... |
|
| Should i throw exception from the Data Access layer? (7 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi, I am using Business Logic Layer on top of Data Access Layer which access the the data source. should i throw exception out of the Data Acces Layer,or should i catch them in the Data Access Layer and return some value to the Business Logic Layer ? both are used by a web site application and placed on the same machine. Data Access Layer throw exception: try { command this.GetCommand(CmdText, con... |
|
| COM+ application proxy performance (2 replies) |
| microsoft.public.dotnet.framework.performance |
| Hello, I Posted this on component services group, but maybe post here it would be a better idea. I have a ServicedComponent written in C# which performs some fairly simple actions with DB. The performance is not bad, actually, while it's running on the same machine with the client. However, when I'm creating an application proxy from it's COM package and activate it in multi tier the performance i... |
|
| Disposed object (2 replies) |
| microsoft.public.dotnet.framework.performance |
| How can I re instantiate an object that has been disposed by the Garbage Collector? Here is the scenario: I need to re instantiate an object on the to keep the app.running. (System.ObjectDisposedException) Thanks in advance, Marcelo. |
|
| Explain benchmark results? (5 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi, can someone explain the following results to me!? I have a VectorBase class, and a Vector class inheriting from VectorBase and IVector. Running the attached test code, I get the following results: avg/100ms 201,700 System.Double[] avg/100ms 310,900 VectorPerf.VectorBase avg/100ms 240,300 VectorPerf.Vector Thas is, the derived class performs better than the base class!???? If I comment out the ... |
|
| "is" and "typeof" keywords (4 replies) |
| microsoft.public.dotnet.framework.performance |
| Is there any performance difference between typeof and is keywords? For the 2 following lines : bool b (schemaObject.GetType() typeof(XmlSchemaSimpleType)); and bool b (schemaObject is XmlSchemaSimpleType); In my opinon even if the first line of code call an extra method "GetType()", it would still be more performant that the other one as I think that the first one look at the class definition and... |
|
| use-attribute-sets is slow with System.Xml.Xsl.XslTransform (3 replies) |
| microsoft.public.dotnet.framework.performance |
| in my ASP.NET application i'm using System.Xml.Xsl.XslTransform with System.Xml.XPath.XPathDocument to do all my xml processing. so i'm profiling, and notice that xsl processing is taking up 50% of a given page hit. there are 13 different xsl's being processed for this page, so i reorged the code temporarily such that each xsl transform is called by a method dedicated to the specific xsl file bein... |
|
| Programmatically Launch CLRGUIDebug failed (2 replies) |
| microsoft.public.dotnet.framework.performance |
| Anyone can explain why launch GUIDebugCLR failed With error message: " An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in system.dll Additional information: The system cannot find the file specified" But the same code works with notepad.exe. Here it is: //Once button clicked: ProcessStartInfo pInfo new ProcessStartInfo ("dbgclr.exe");//("DbgCLR.exe"); neither works /... |
|
| CPU PerformanceCounterCategory (3 replies) |
| microsoft.public.dotnet.framework.performance |
| I am trying to get a performacecounter for CPU utilization (so I can then get a PerformanceCounter showing CPU rate or utilization) using the following code: PerformanceCounterCategory* category new PerformanceCounterCategory("Processor Performance"); However, the the Processor Performance category is often not available and an error returns saying it does not exist. The same happens with code to ... |
|
| How to get rid of ConsoleWindow after run-time compiling? (2 replies) |
| microsoft.public.dotnet.framework.performance |
| I can write one runtime compiling winform. However it looks there is always a console winapp accociate with this winform. Here is code snippet of runtime compiling and execute code: What property need to set to get rid of the console CSharpCodeProvider codeProvider new CSharpCodeProvider(); // For Visual Basic Compiler try this : //Microsoft.VisualBasic.VBCodeProvider ICodeCompiler compiler codePr... |
|
| Threadpool vs AsycDelegates (2 replies) |
| microsoft.public.dotnet.framework.performance |
| I have a situation where I want to execute something asynchronously. I don't want to wait on a result, but I want to know that it runs (I'm in another delegate handling an event). Is it faster to use a delgate and call BeginInvoke (I don't want to have to call EndInvoke though) or to create a WaitCallback and throw it in a ThreadPool? Thanks! Bill |
|
| Poor performance with binary serializer (3 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi all, I'm trying to serialize a fairly large object tree using the Binary formatter, and the performance is not acceptable: FileStream fs new FileStream( Workspace.FullpathName, FileMode.Create, FileAccess.Write ) ; BinaryFormatter bf new BinaryFormatter(); bf.Serialize( fs, Workspace ); fs.Close(); The Workspace object above contains a total of several tens of thousands of classes, and is about... |
|
| C# Console Application / ASP.NET (7 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| Hello I'm building a bunch of classes for a website. I'm doing them in a separate project from the website itself. Instead of building a website to test the API, I just built a quick console application. The functional equivalent of what I'm doing in C# exists already as an ASP. The ASP loads in under a second. The console application took 2.5 seconds to do the same thing. I spent hours playing wi... |
|
| Image.FromHBitmap is too slow! (3 replies) |
| microsoft.public.dotnet.framework.performance |
| Hello, I created a Managed C type library that perform capturing of the screen, I captured the screen via API functions, and finally I have a: HBITMAP object that contain the captured screen. When I want to convert this HBITMAP object to .NET framework, The only way that I know about, is to call the: Image.FromHBitmap and to pass the HBITMAP object. I want to do this operation 5 times is second, a... |
|
| invalid handle after a reboot (2 replies) |
| microsoft.public.dotnet.framework.performance |
| Below is a thread from .Net Guru discussing a problem where a perf counter object gets an invlaid handle after a reboot and the only two solutions are to restart the exe that created the perf counter or wait for the next version of .NET CLR per David Gutierrez of [MS]. Is there NO way to clear the cache of old network connection handles? Help, Dave Kolb I have a service written in C# that monitors ... |
|
| Poor inline optimization of C#/JIT. (8 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi all, I have a C# program that has a lot of complex mathematic calculations. To simplify the code I tend extract methods from complex expressions. But the performance pernalty for doing this seems to be prohibiting. The following is a sample program that shows by extracting a single line expresion to a separate method you can loss more than 100% of performance. Notice that the extracted method i... |
|
| Thread Priority (3 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi, If I have two applications, both enter a critical section via a Mutex. one creates threads and sets their priority to ThreadPriority.Highest the other creates threads and sets their priority to ThreadPriority.Lowest When I execute the two applications, the one with the ThreadPriority set to highest gets into the critical section every time, where as the one with the lowest priority doesn't get... |
|
| Another PerformanceCounter bug? (2 replies) |
| microsoft.public.dotnet.framework.performance |
| I'm working with PerformanceCounter and I'm noticing very strange behaviour. I can't add any instances to my counters once instances have been removed? For example our application creates and destroys 'things' at runtime that I want to add and remove from the perfmon instance list. The first instances appear but I'm unable to get the new instances (same name & different names) to appear! Even if I... |
|
| Help with memory leak in mutithreaded service (6 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi, I'm wondering if there is a problem with the services and SQL in .NET or I'm doing something wrong. I created a multithreaded database application. It worked fine like desktop application. Then I changed it for a service and it began taking more and more memory. it grew from about 15Mb to 270MB in 24h. To try to find the source of the leak I used the Application profiler and found that a class... |
|
| I need a function that will get all running SQL server (or MSDE) on the network . (3 replies) |
| microsoft.public.dotnet.framework.performance |
| For C# or any .net language Thanks |
|
| Performance lost using UIntxx? (3 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi, I'm using VB.NET to develop a simple app that reads binary data from a file. Some of this data is composed by unsigned numbers, so I'm using the UIntxx structures of the framework, because VB.NET does not provides support for unsinged numbers. Is this the correct solution? (Yes, I know that C# supports unsigned values, but I'll prefer to continue using VB.NET. I like it) Will this be a problem... |
|
| Unusually high CPU Usage - HELP! (4 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi I've written a small console app in C# that basically starts two System.Timers.Timer(s) to check a db for new records, and check the local filesystem for new files. On the computer I've written and tested the app on (Windows 2000 Server), it runs perfectly (call it machine A). Normal CPU usage is about 3% (on P4, 2.2Ghz, 1GB Ram). However, on the live/deployed machine (machine B) that the appli... |
|
| VB Collection (5 replies) |
| microsoft.public.dotnet.framework.performance |
| I have a collection in my project (its very large!), that acts as a queue during runtime. I add a few thousand objects to it, and later on remove them. This happens many many times (hundreds of thousands) over a long time. I can test how many (and for how long) loops my program has been through and after 12 hours of running the same loop the time the loop runs for its getting longer and longer. I ... |
|
| HOw to tune dynamic create object (5 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi! For my window program, i use dynamic creation object by Activator.CreateInstance(assemble, classname). But performance is poor. I want to know how to boost up performance? Thanks! |
|