microsoft.public.dotnet.framework.performance Archive - July 2003
Post a message to this list
Messages
Page: 12
passing data structure by many functions (7 replies)
microsoft.public.dotnet.framework.performance
I have a data structure like this Public structure myStructure Public Name as string Public LastName as string Public Age as Integer End Struct I need to pass this structure as parameter over 3 or 4 functions. I read that the structure is passed by value ( copy of the object ). Is better to create a class (that is passed by reference), avoiding with it the copy of the object each time that is pass...
How to have only one instance of webmethod running (2 replies)
microsoft.public.dotnet.framework.performance
How can I ensure that only one instance of my webmethod is running at any particular instant and that other instances are queued and not started? I need to do this because my webmethod takes a long time to complete, and the sum of the memory consumed by many different instances of my webmethod could trip the memory limit.
JIT compilation... (2 replies)
microsoft.public.dotnet.framework.performance
If an ASP.NET page is JIT compiled and then isn't called again for a period of time; how long does that JIT'ed version of the code stay in memory before it must be JIT compiled again? And is this length of time controllable? Regards, Doug Holland
Memory & SoapSerialize (2 replies)
microsoft.public.dotnet.framework.performance
I have 2 memory issues that have been driving me insane for weeks. The app will be a service running on a VERY important server. The app will need to run for YEARS without shutting down. I can't run it for 1 day without running out of memory. ..NET Framework 1.1 The following pseudo code outlines what I'm doing: Dim oSerializer as new Serialize oSerializer.SaveItems(colCollection) oSerializer Noth...
Large Object Memory Leak/Upgrading to 1.1 (4 replies)
microsoft.public.dotnet.framework.performance
Apparently this is a well known problem, but I haven't found a clear solution yet. I've got a csharp program, built with Visual C# Standard. I've been using the Allocation Profiler (http://tinyurl.com/715d), which I think is pretty cool, and it shows a few huge string objects (16mb), most of them allocated by System.String::GetStringForStringBuilder, which is called by StreamReader.ReadToEnd(). Th...
VB.Net Socket Slows Down Gradually (2 replies)
microsoft.public.dotnet.framework.performance
Hi everyone. I am writing a Flash/VB.net socket program that essentially acts as an echo server. I used the Microsoft example for the base code, and created a client object that holds the socket, and handles incoming data. Everything runs well, until the Flash begins sending data very quickly. What I notice is that the data seems to "back up", and can take maybe 15 seconds to "catch up". Is there ...
Help - Memory Usage (4 replies)
microsoft.public.dotnet.framework.performance
The application I'm developing has a memory leak somewhere. Basically, the application uses a shadow bitmap to combine a base image with an image selected from a combo box and uses the composite result as a background for a group box. Every time they select a different image, the memory usage jumps 1MB. I can't seem to figure out where and what I need to do to get that 1MB back. There are over 100...
Performance cost of reflection (3 replies)
microsoft.public.dotnet.framework.performance
I'm asking myself a lot of questions about Reflection and the cost associated with it. In the one hand, I understand that using Invoke(...) is a costly operation, like it was in COM with IDispatch. But what happen when you dynamically load an assembly and instanciate a type in it, without explicitly using Invoke? How are the method calls made. Let's look at the following example: try { Assembly as...
PerformanceCounter PhysicalDisk\% Disk Time always show 0 (3 replies)
microsoft.public.dotnet.framework.performance
pd New PerformanceCounter("PhysicalDisk", "% Disk Time", " Total") Whenever I call pd.NextValue(), it always return 0. However, when I check the same counter with sysmon.exe, it shows disk usage correctly, how come? My OS is Win2k so diskperf yd is set by default. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
Context.Redirect vs Server.Transfer? (3 replies)
microsoft.public.dotnet.framework.performance
Hi, I've recently downloaded the last .Net Petshop 3 and I'm trying to learn something from its code but I've found something strange. I'm not an expert in ASP.NET so this can be a silly question... In this app it's used very much "HttpContext.Current.Response.Redirect( url, true);". This sends an HTTP Redirect message to the client browser (that implys two messages, server client and client serve...
ASP.NET Performance considerations (3 replies)
microsoft.public.dotnet.framework.performance
I am somewhat proficient (very generous statement) in coding simple ASP.NET applications and manipulating datasets, datatables via ADO.NET; however, I am by no means an expert on what occurs behind the scenes and what performance considerations should be taken while creating an application. Consequently, one of the applications I've made consistently deadlocks every night at around the midnight ho...
Performance and Dispose (6 replies)
microsoft.public.dotnet.framework.performance
Hello, Sometimes some people have recommened that if an object provides Close and Dispose, or provides Dispose, but doesn't use unmanaged resources, that calling Dispose isn't necesary. However, if an object has a finalizer, won't there be a performance impact of not calling dispose because the object will go from gen0 to gen1 since it's on the finalize queue? Since Dispose should call SurpressFin...
AverageTimer32 (3 replies)
microsoft.public.dotnet.framework.performance
Is there a anyone out there who has managed to successfully create and use a custom performance counter of type AverageTimer32? I've created a category, added an AverageTimer32 counter, added an AverageBase counter immediately after that, and then attempted to use them by creating an instance of both, then calling IncrementBy on the AverageTimer32 counter and then Increment on the AverageBase coun...
Time complexity of collection classes (6 replies)
microsoft.public.dotnet.framework.performance
Does anyone know if the time complexity of the various collection classes within the dotnet framework has been documented anywhere? This information doesn't seem to be present within the framework docs (that I can see). Would it be safe to assume that each class' implementation is based on it's namesake within java and STL, and that therefore I can just refer to the java/STL docs?
Thread 1 starts long process on thread 2, what is best way to notify thread 1 of status? (4 replies)
microsoft.public.dotnet.framework.performance
I saw an interesting article on DevX... http://www.devx.com/codemag/Article/16107 However, that does not cover what to do if the long process needs to update the original thread as it works. The relevant classes to this question are... public class ProgressMeter { private iProgressDisplay targetDisplay; public ProgressMeter(IProgressDisplay target, string message, int totalItems){...} public void ...
Derefencing Objects... (12 replies)
microsoft.public.dotnet.framework.performance
Being from a C / C# background I might have this wrong, ... however it is my understanding that in the world of VB6 people often set objects to Nothing so that they could be dereferenced and the environment could reclaim the memory. I read in an article, aimed at VB.NET developers, that you should refrain from setting objects to Nothing in VB.NET or null in C# as you can hinder the Garbage Collect...
DateTime.ParseExact() extremely poor performance - FCL poor coding? (4 replies)
microsoft.public.dotnet.framework.performance
Hi All! I have written code which uses very extensively DateTime.ParseExact() function to read ascii financial data streams. Unfortunately I have discovered that major bottleneck in my app lies in these function calls. After converting this to simple Int32.Parse() and doing some most basic algebra on int one can get 10 100 times better performance. I would like to ask Microsoft a question on the w...
Java is at least 7,733x faster than C# (7 replies)
microsoft.public.dotnet.framework.performance
Belive it or not check http://www.freeroller.net/page/ceperez;jsessionid 44B92E7DD11183E4D772E99D9E C8EB88?catname 101 List nETmAN
Some StringBuilder questions (9 replies)
microsoft.public.dotnet.framework.performance
I know that StringBuilder is more efficient for strong concatenation (BTW, since I've been programming Java for 7 years, usnig StringBuffer, I searched for its equivalent right away). But I have some questions regarding performance, that should be in the documentation in my opinion: Is: s (new StringBuilder(t)).Append(u).ToString(); quicker than: s t u; (with t and u being tiny strings, bigs strin...
Theory question on Memory usage (22 replies)
microsoft.public.dotnet.framework.performance
I am writing an application in VB.net 1.1 It seems as the program runs it consumes more and more memory as time progresses. I have looked arount the internet for documentation on HOW to control my memory usage. I have gotten many MIXED messages on what is the best way to do this. I have read that as a programmer I cannot really RELEASE used memory that I HAVE to wait for the GC to do this (does no...
Stress Test Web Service (2 replies, VIP)
microsoft.public.dotnet.framework.performance
Could someone direct me to some articles, web site or tools that would show how to stress test our web service and record performance numbers and reports? We have the Microsoft Application Center Test tool can this test web services?
Strange Exceptions (3 replies)
microsoft.public.dotnet.framework.performance
Hi there!!! Whell, I'm having a strange problem with Exceptions when i'm working with Threads in the ThreadPool and acessing a SQL Server DataBase... Sometimes during the execution of the program, a exception is thrown in the line that executes some SQL in the Database, but the strange think is that the Description of the exception don't have nothing to do with my Sql Command.... for example: I'm ...
VB functions compared to .NET methods (5 replies)
microsoft.public.dotnet.framework.performance
I guess this is an FYI rather than a specific question... I've rewritten a process that transfers database data into a web page from ASP and a VB Scriptlet (using ADODB & MSXML2.ServerXMLHTTP) into .NET (using ADO.NET and HttpWebRequest). When checking out the performance increase it's gone from 2 second to 1 second it wasn't that slow before but I'm trying to convert to .NET where possible : ) Ex...
Debbugging help! (.NET 1.1 Framework Garbage Collection Problems) (6 replies)
microsoft.public.dotnet.framework.performance
Hi all, I need some help with debugging a "deadlock" in a production environment. I've managed to get a crash dump and have tried to analyzed it via WinDbg and SOS. Unfortunately, I am not skilled enough in debugging to pinpoint the exact problem; however, I have narrowed it down to the garbage collection process. All threads seem to be waiting for the GC to complete; when the process hangs, ASPNE...
StringBuilder (11 replies)
microsoft.public.dotnet.framework.performance
Hi, the article at http://msdn.microsoft.com/vstudio/using/understand/perf/default.aspx?pull /l ibrary/en us/dndotnet/html/vbnstrcatn.asp said that it is a good idea to use StringBuilder for performance reasons. But the tradeoff is to have to use the .Apend method consecutively. So I wrote this little class that embedd the StringBuilder class and overload the operator. So I have a perfomarmatic st...
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification