Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > dotnet performance > april 2005

High Memory Consumption of Classes and Arrays
Posted by groupanswers NO[at]SPAM rattat.net at 4/30/2005 11:55:22 PM
Hi, on my way to implement a data structure with csharp I have noticed that classes and arrays in dotnet consume very much memory. - An instance of an empty class without any properties consumes 24 bytes - An empty array consumes 16 bytes (*[] = new *[0]) - An instance of ArrayList (constr...more >>


Any news about the inlining problems?
Posted by R=FCdiger_Klaehn at 4/30/2005 3:01:01 PM
Hi, As some of you probably know, methods using value type parameters are _never_ inlined by the .NET framework. This leads to very low performance in many performance critical areas such as 2D and 3D graphics. I filed a suggestion in august 2004. <http://lab.msdn.microsoft.com/productfeed...more >>

Sockets, Performance, Messaging, NetworkStream
Posted by Arthur M. at 4/29/2005 1:14:02 PM
If anyone can help that will be much appreciated. I have implemented async socket server & client, functionally both work well, when connected through loopback, performance is reasonably good. The issue comes when i run the software over the network while functionally it remains stable, per...more >>

Problem: OutOfMemoryException thrown
Posted by Carlos at 4/27/2005 3:39:01 AM
I have a process which is running a remoting object. This object reads messages from a MSMQ queue. Each message is a dataset and it is stored in a Oracle10 Database. (Messages in the queue are stored as strings) After start, the process uses 30-40MB of memory (in the taskmanager). Two or thre...more >>

Is Regex quicker than IF?
Posted by Philippe Dufour at 4/26/2005 10:00:03 AM
What is quicker? If (Regex.IsMatch(tmpStr, "(s(ain|c)?t)", RegexOptions.IgnoreCase) Then or If ((tmpStr.CompareTo("saint") = 0) _ OrElse (tmpStr.CompareTo("sct") = 0) _ OrElse (tmpStr.CompareTo("st") = 0)) then I know that Regex is quicker to write, easier to read, but performa...more >>

Moving large media files over the internet securily
Posted by Fred Herring at 4/25/2005 9:17:52 AM
I need to be able to move large media files avi, wmv over the internet from a server to client machines. The files sizes I am looking at is ~300mbtes raw and ~200mbtes compressed. If steaming is not an option for security reasons, what is best technology for moving these large files over the...more >>

Inlining.
Posted by thomash at 4/21/2005 2:06:04 PM
Hello, Reading msdn.com and several blogs (also on msdn :)) it appears that simple properties that just get/set a private member are good candidates for inlining by the JITter. Does anyone know if inlining occurs across modules? Say I have module A with a class with a simple property an...more >>

System.Threading.Timers on multiprocessor Windows Server 2003
Posted by Jamus at 4/19/2005 7:52:31 PM
Wasn't totally sure if this was the right newsgroup to post to, so if there's a better place, please let me know. Windows Server 2003 (multiprocessor) seems to have a curious implementation of System.Threading.Timers. The abnormal behavior became obvious when we upgraded from Windows Server...more >>



Memory loss as shown in TaskManager
Posted by John Olbert at 4/18/2005 9:52:01 PM
We are seeing odd behavoir in memory usage with .NET Framework 1.1. On startup the memory used as reported by TaskManger climbs to over 90mb. If you minimize the App the memory drops drastically then upon Restore it comes back to a more reasonable level (about 20mb) but starts to climb with us...more >>

reciving 1000 packets simultaneously using UDPClient
Posted by ramata at 4/18/2005 3:47:02 PM
I am developing an application that gets a brust of about 1000 or more packets at same time from different IP addresses. I have to process each packet and performance is essential. I am using UDPClient to recieve packets and then using a Delegate function to pass the bytes recieved for pro...more >>

large memory footprint of dotnet application (200MB)
Posted by assi at 4/18/2005 9:43:45 AM
Hello all We are developing a large dotnet application, which includes ~ 120 assemblies. (total size of all binaries is ~ 20MB). Our application also references the following dotnet assemblies: System,System.XML, System.Windows.Forms, System.Drawing, System.Data, System.Design. We use dotne...more >>

Fasted way to compile code
Posted by Adrian Moore at 4/16/2005 9:34:03 AM
I have a tool that generates VB.NET code, compiles it into a DLL in memory and then executes a method on the class. I can execute the method on the class thousands of times per second. The generated code is slightly different each time the tool is run, so I must compile it each time. Th...more >>

GC, Should I care?
Posted by Chris Mayers at 4/15/2005 12:00:00 AM
I am trying to track a suspected memory leak in an application I'm writing and through repeated simplification of my project, I have found the following which is quite easily replicated should you be prepared to give me 5 minutes of your time... Create a new C# (Probably the same in VB...more >>

Execption Handling disection
Posted by rawCoder at 4/14/2005 12:00:00 AM
I have read that Exception Handling is expensive performance wise ( other than Throw ) , but exactly how ? Please consider the following example ... ////////////////// Code Block 1 ////////////////////////////////// Try { for ( ... ){// Code that might throw exception} }catch(...){} ...more >>

Enumerator vs ForNext vs ForEach
Posted by rawCoder at 4/13/2005 9:38:55 PM
Hi, Which is better in terms of performance. Iterating over Enumerator ForNext loop (using indexer) ForEach loop Thanx rawCoder ...more >>

high RESOLUTION timer
Posted by Petr Votocek at 4/12/2005 12:00:00 AM
Hi all, I need to use high resolution timer. I' ve found that QueryPerformanceCounter from Kernel32.dll coudl be used for this purpose. My question is what is this counter for? I know only that it is zero when starting windows... What does it mean one step for this counter? Thanks Petr ?...more >>

Problem getting ExecutablePaths
Posted by Christopher Attard at 4/7/2005 10:50:38 AM
Hi, I have a C# application which uses WMI to retrieve the ExecutablePath for each running process on a specific computer (might be local or remote). The problem is that some ExecutablePaths for some running processes (excluding the System and Idle processes which do not have any Ex...more >>

Add new memory and now Out of Memory
Posted by Steve Harris at 4/6/2005 3:53:26 PM
Can anyone shed some light on why a web server running ASP.NET with 1GB of memory works fine, but when I increase the memory to 2GB I constantly get "Out-of-Memory" errors? I'm stumped. Regards, Steve ...more >>

freeze column and the header in a datagrid
Posted by via DotNetMonster.com at 4/6/2005 11:07:03 AM
Can any one help me in freezing the column and the header in a datagrid? -- Message posted via http://www.dotnetmonster.com...more >>

.NET Windows Services - startup performance bug
Posted by Arnie at 4/5/2005 2:34:31 PM
We think we have discovered a bug in .NET. When we create a .NET windows service it take > 90 seconds at boot time to startup the service, even when the service does nothing. After alot of investigation and research we have discovered that if we make our service depend on a number of other ...more >>

Eating the cpu cycles efficiently
Posted by Raqofella via .NET 247 at 4/5/2005 7:11:58 AM
hey, i've an app which readz messages from msmq and writes them into= sql server via multiple threads (not via thread pool)=2E msmq= messages get empty in time=2E it takes 100-150msec to complete the= batches to sql server (each batch invokes 5-6 stored procedures= on the database)=2E=2E ...more >>

transition to managed code takes too long
Posted by Dmitry Sazonov at 4/5/2005 6:07:40 AM
Hi, I have native C++ code, which calls managed code 10,000 times second. I'm using --- in .H file: ---- #include <vcclr.h> .... gcroot<ManagedTick __gc*> managedTick; .... --- in .CPP file: ---- ManagedTick* managedTick = GetTick(...); managedTick->onTick(); which go to vcclr.h ...more >>

Assertion Error
Posted by Steven Brown via .NET 247 at 4/5/2005 4:47:30 AM
I keep trying to play Alexander The Game, but a text bar pops up saying Cossacks2 has caused an Assertion Error Message: Display mode 1280x1024 is not supported What Should I do? From: Steven Brown ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/) ...more >>

Oponion of OpenSTA as load testing tool
Posted by Eamonn O'Connell at 4/4/2005 1:09:06 PM
Hi all, Has anyone used OpenSTA in order to perform Load/Perfromance testing (or capacity planning) on their applications? I would like some general feedback as to what type of testing you have performed, how highly you rate OpenSTA, and what problems if any you encountered. Our web applic...more >>

Thread priority tunning
Posted by Marek at 4/4/2005 10:03:27 AM
Hi! I have server that performs two types of operations. First type should be described as long time processing operations that takes a lot of CPU time. Second type should be described as short time processing operations that need to be done quickly. When first type operation is running, proc...more >>

Marshal by ref?
Posted by Philipp Schumann at 4/3/2005 9:37:13 PM
Hi, in a class library I'm developing, I have the option to make a very central, service-providing-type class compatible with certain remoting scenarios that users of that class library might wish to implement by having the class inherit from MarshalByRefObj. Certainly a marginal, rather...more >>

ÃÀ¹úÖªÃûͶ×Ê´óʦ´´½¨µÄÕæÕý·ûºÏ21ÊÀ¼ÍµÄÔÚ¼Ò¹¤×÷ÔË×÷ϵͳ
Posted by xiajunchao at 4/1/2005 10:38:37 PM
¡¶Ò»·ÖÖÓ°ÙÍò¸»ÎÌ¡·ÊÇÈ«ÃÀ•³äN•øÅÅÐаñµÚÒ»Ãû ¡¸ÐÄì`ëuœ«¡¹×÷ÕßñR¿ËínÉ­£¬¡¸„“ÔìØ”¸»¡¹×÷ÕßRobert G.AllenºÏÖø£¬ÔÚ¸÷´óлªÊéµêÓÐÊÛ¡£ ß@´Î²»ƒH¸æÔVÄúÀíØ”Ó^Äî¡­. MSIˆFê ¸ü°ÑRobertµÄͶÙY˜ËµÄÅc¸ÅÄîÒýßMÖйú ÄúœÊ‚äºÃ³Éžé°ÙÈf¸»ÎÌÁˆ᣿ ÒýÓÃÈ«ÃÀÖªÃûÀí²Æ×¨¼Ò¡¢MSIϵ½y„“ÞkÈËRobert G .AllenµÄ»°£º ÒÔÎÒ 20...more >>

Inlining indexers
Posted by Ewan Cunningham at 4/1/2005 1:09:04 AM
I've been trying to write a fast multi-dimensional array class in C# for a project I am working on. Basically it uses unsafe code and a single-dimensional array on the unmanaged heap to simulate a multidimensional array with no bounds checking or similar. The problem with it is when I tr...more >>


DevelopmentNow Blog