microsoft.public.dotnet.framework.performance Archive - October 2002
Post a message to this list
Messages
Page: 12
Vc++ Net performance against Vc++ (v7) (5 replies)
microsoft.public.dotnet.framework.performance
Dear friends: A group of developers at our organization have been testing vc .net for possible upgrading our classical c (v7) dlls and COMS to .net. We usually work with very memory and resources consuming programs, like text indexers and terms filters, where performance is essential. Our initial results show that a simple migration of the code to .net have reduced our performance 10 times !!! How...
remoting so slow? (2 replies)
microsoft.public.dotnet.framework.performance
I have a client server application with remoting, tcpchannel in a windowsservice. The performance is very bad when im getting 9000 rows, it takes around 8 seconds to get it up to the client. What am i doing wrong? if i instance the object with new it takes a second to get the same amount of data. so i guess it has to be something with remoting through tcp channel. its vb.net and a sql2000 server. ...
Objects ot Datasets? (12 replies)
microsoft.public.dotnet.framework.performance
Hi, I have a general question about application design. I'm building infomation systems, meaning I work very closely with the database. The applications are relatively simple, they load the data from the database, show it to the user and gives him the oprion to change it (add, edit and remove data). I am familiar with 2 ways of implementing such a design: 1. Object oriented I write classes that re...
Major instability issues (4 replies)
microsoft.public.dotnet.framework.performance
Hi all , we have a 3 tier ASp.NET/C# web application using Remoting(IIS hosted). I am facing some major instability issue with regard to session variables getting lost in between when the application is running. I have stopped all the anti virus applications( which may be one of the cause ) but still i am facing issues. I am using HTTPHandlers to handle all my request. Pls give some inputs. Regard...
Efficient use of System.Timers.Timer (2 replies)
microsoft.public.dotnet.framework.performance
A quick question for a Microsoft person: In an application that has several instances of objects that require a Timer service, is it advisable to create a System.Timers.Timer instance for each object, or to share one Timer instance across many? I am concerned about thread resources. Does a System.Timer.Timer require its own background thread to monitor elapsed time and raise the Elapsed event, or ...
XslTransform Performance Issue (3 replies)
microsoft.public.dotnet.framework.performance
I'm experiencing a major performance issue with the .Net System.Xml.Xsl.XslTransform object. It's taking 10 seconds to transform only 15 rows of data. When I do the same transformation with MSXML3, it takes less than 1 second. Can anyone offer any suggestions for improvement? The data and transformation are as follows: Data... ?xml version "1.0"? NewDataSet Table StatusCode C /StatusCode ClientId ...
controls on memory usage of CLR (8 replies)
microsoft.public.dotnet.framework.performance
is there a way of controlling the min/max size of the .net runtime or CLR. Lets say I have a big server and I want to control the maximum amount of memory that the CLR can use. One might also want to specify the minimum as well. Also can one specify the sized of the generations in the GC? Also the numbers I get from System.Diagnostics.Process.peek*() don't seem consistent with the number I get fro...
fast searching of huge text files (2 replies)
microsoft.public.dotnet.framework.performance
I'm working on a file search engine for a LAN. The data file is a 100MB text file, with one item per line (1.5 million items), and I read it and put it into a memorystream. The format is as follows ( bar seperated lines ) filename | filesize | path the search engine is accesible through a ASP.NET webpage. What is the most efficient way to search through the entire file? I require an AND query feat...
10MB form loads & 6MB consoles? Can't be true? (6 replies)
microsoft.public.dotnet.framework.performance
I apologize if this is a very common question, I didn't see it in the posts. Note: this concerns Console apps as well as WinForms.. There is a scary trick to getting WinForms to stop sucking up a minimum of 5MB on load (I'm getting over 10MB on loading a form that has no code and no controls but an MS post admitted 5MB per form). That Trick is to minimize thhe form them restore it after it has loa...
Component Services Statistics (2 replies)
microsoft.public.dotnet.framework.performance
I'm running a pooled object in COM , and it functions properly, but I can't get it's statistics to display in the Component Services MMC snap in. In fact, the component doesn't even spin when it's activated. In the MMC, the "Component supports events and statistics" option is checked, and I'm even setting the "EventTrackingEnabled" to true declatitively (see below). ObjectPooling(Minpoolsize: 5, M...
SortedList & performance (4 replies)
microsoft.public.dotnet.framework.performance
Hi, I've slightly the idea that dotnet has no good performing way to have a fast performing index based ideal for inserting! What I could do is this... ArrayList sList new ArrayList(...); sList.Add("somekey"); ....... 100000 elements further... sList.Sort() ; // this costs 1,1 second on my machine (1 GHz PIII) OK OK it is not too bad but... What I would expect is that SortedList would do the whole...
Invalid Handle after reboot (3 replies)
microsoft.public.dotnet.framework.performance
I have a service written in C# that monitors the performance counters on a remote machine. Everything works fine until the remote server is rebooted. When the server is down, I get the following errors: System.ComponentModel.Win32Exception: The remote procedure call failed And then System.ComponentModel.Win32Exception: The RPC server is unavailable When the server comes back up again I continually...
Creation of "large" web service proxy object takes 10 seconds (3 replies)
microsoft.public.dotnet.framework.performance
We have a web service that exposes approximately 40 methods and 40 typed datasets. We used Visual Studio to create a Windows form client and added web reference. Everything "works", but I've noticed that the initial creation of the web service "proxy" object takes over 10 seconds. I assume this is because the class created by Visual Studio when the web reference is added is rather large. public vo...
Will the Compiler swap out string manuplation with the String Builder Class? (3 replies)
microsoft.public.dotnet.framework.performance
I was curious if anyone had knew of the compiler would take say the following code: string xml " ?xml version '1.0'? IdcEvent "; xml "Name '" this.eventName "' "; xml "ApplicationName '" this.applicationName "' "; if (this.clientToken ! null) { xml "ClientToken '" this.clientToken "' "; } xml " DataCollection "; foreach (System.Collections.DictionaryEntry entry in this.dataCollected) { xml " Data ...
Slow startup of windows forms application started through web server (7 replies)
microsoft.public.dotnet.framework.performance
Hi ! Does someone happen to know why my windows form application takes / 100 seconds to startup when started through Internet Explorer using http (as a 'smart/rich client') ? except when using localhost... When starting it through DOS or Explorer it is almost immediate ( / 2 seconds). I already tried the 'ASPNET user' trick without success. I looks like some TCP/IP or HTTP or DNS or ??? problem bu...
Is native machine performance a target for the CLR? (5 replies)
microsoft.public.dotnet.framework.performance
I was in a discussion about CLR and unwillingly got into the performance issue. Somebody showed a C app (pure C ) which sorted 100,000 emails in 1.6 seconds while the c# version needed 9 seconds... #include fstream #include iostream #include string #include algorithm #include vector using namespace std; bool myless (const string& a, const string& b) { return lexicographical compare(a.rbegin(), a.r...
Threads, ADODB and a lot of missing memory. (3 replies)
microsoft.public.dotnet.framework.performance
Hello, We have an application written in VB that we are looking to port over to vb.net so we can multithread... Here is a brief overview of what we do. We take the log files from an IIS server and insert their contents into a SQL 2000 server using a stored proc. Basically, we open the log file, open the connection to the database and execute this stored proc for each entry. It's a little crude but...
Is this a VB.NET BUG or ASP.NET BUG? (3 replies)
microsoft.public.dotnet.framework.performance
Hi, It seem that we that when one try to set a Private variable in a method that has the AutoComplete set the method just "Failed" to execute the assign statement "Result B" was the expected result but instead "Result A" was shown. But if the AutoComplete directive is being removed the Class worked as expected; "Result B" is shown. But if the value is changed thru the property it work as expected....
Final battle between the C++ and C# code benchmark (5 replies)
microsoft.public.dotnet.framework.performance
I was on a discussion on a newsgroup about programming. We came into the issue of languages, compilers & performance and started to battle each other with our code. Finally some linux programmer came up with the mmap (C class) and I had to translate that to MapViewOfFile and they beated the C# code finally so 0,3 seconds for C and 0,9 for C#... If you see any improvement in the C# code I would lik...
TreeView (3 replies)
microsoft.public.dotnet.framework.performance
Hi, I am using a TreeView control with thousands of nodes, and the performance seems much slower than it needs to be. Here are some symptoms which make this apparent: Creating a new tree takes 50x (yes fifty) less time than it takes to re name all the node.Text entries of an equivalent tree. Ex.: re name all the nodes to upper case much faster to blast the whole tree and re create it... Using the ...
How are large hex values stored in System.Int32 data type? Fast way to convert? (10 replies)
microsoft.public.dotnet.framework.performance
An application I am working on stores 8 digit hex numbers in System.Int32 data types. This works, even though the max hex value of HFFFFFFFF is greater than the max value of Int32, because the Int32 representation of some hex values is negative, as shown below: Dim hexString As String "F0123456" Dim longVal As Long Convert.ToInt64(hexString, 16) '// longVal 4027724886 Dim intVal As Integer Convert...
Impossible to compare 2 object containing 2 different value types? (14 replies)
microsoft.public.dotnet.framework.performance
I have a function that receives 2 objects, each containing a value type I want to compare these two objects and test wether their value is equal. Decimal x 15; int y 15; object a1, a2; a1 x; a2 y; how do I compare a1 and a2 to see if they hold the same value? a1 a2 doesn't work. Seems the only sollution is to do a1.ToString() a2.ToString() Does anybody know a better (faster) way to do this? I need...
Is Microsoft telling lies ? (13 replies)
microsoft.public.dotnet.framework.performance
According to the .NET documentation the JIT compiler does serveral optimizations to get best performance. One of the optimizations should be inlining of small methods.... doesn't work for me. A very simple example: public class Bench { private int calc(int f, int r){ return (r 4) f; } public void test1() { DateTime start DateTime.Now; long sum 0; for(int i 0; i 1000000000; i ){ int r i & 7; int f ...
GDI Object leak in MDI application. (9 replies)
microsoft.public.dotnet.framework.performance
I have an MDI child form with many controls on it. After a couple hours of openning and closing this form, the application crashes because it runs out of GDI Objects ~10,000. I can open the task manager and watch the GDI objects grow. Each time I open the window this number increases by 60, when I close it (using Me.Close) the number only goes done by one. I have tried to open the window as a dial...
Allocation Profiler on a Windows Service (4 replies)
microsoft.public.dotnet.framework.performance
Is there any way to use the profiler on a windows service written in ..NET/C#? I've got a memory leak (I can tell by using the old fashioned method of looking at the task manager. on start up the service uses 9MB, after a couple weeks, it uses 350MB). Thanks, Chris
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