| Multi-threading limitations? (2 replies) |
| microsoft.public.dotnet.framework.performance |
| I am developing a "pseudo" real time windows forms .NET application in VB. I have to query external counters and display the results on the screen. I was considering setting up a thread for each counter that way, if one of them goes offline and "hangs" for a while (or never responds at all) the others will be unaffected and the GUI will remain active. That seems to make sense for a few counters, o... |
|
| 100% cpu usage on keydown (2 replies) |
| microsoft.public.dotnet.framework.performance |
| I m programming a game in vb.net and want to use the left and right arrow key. In my form I have about 280 objects (mostly pictureboxes). When I hold any key down (except shift, alt and ctrl) the cpu usage raises to a 100% and the program freezes until i let the key up. The strange thing is that I don t even have a handle for keydown/keypress! To recreate the problem you can put this code in the f... |
|
| Data Structures (2 replies) |
| microsoft.public.dotnet.framework.performance |
| Has anyone got a link to any resource that compares classes in the Collections namespace with regards to performance? For example Queue & Stack can also be implemented using an ArrayList, would that hurt or improve performance? When are normal arrays faster/slower than an ArrayList? VB's Collection survived the move to .NET but in places where it is only used with integers it can be replaced with ... |
|
| Powerbuilder faster than c# ado.net? (9 replies) |
| microsoft.public.dotnet.framework.performance |
| Someone please tell me that I'm doing something drastically wrong. I am in the throws of convincing my senior management that we should switch from powerbuilder to c# and .net. So I wrote a little test windows forms app that creates 1000 rows in a dataset and updates a sql server 2000 table with the 1000 rows via a DataAdapter.update. I wrote the same app in powerbuilder 6.5 and did the same thing... |
|
| Convert DataSet(or DataTable) into DataReader (3 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi, I found a way how to Convert DataReader into DataSet(or DataTable), now I need to do this operation backwars, another words I need to convert DataSet(or DataTable) into DataReader(SqlDataReader). I found it much harder task. Is there a way to acomplish that? Code sample would be great. Thanks a lot in advance, Alex |
|
| PerformanceCounterCategory.GetCategories(strMachineName) Access Denied (4 replies) |
| microsoft.public.dotnet.framework.performance |
| Hello, I am using PerformanceCounterCategory.GetCategories(strMachine) to try to retrieve Performance Object categories from a remote machine. Unfortunately, i keep getting an "Access Denied" because of lack of permissions? How can i get around this problem? Thanks very much. |
|
| calling bcp api from C# (6 replies) |
| microsoft.public.dotnet.framework.performance |
| Hello all I have written a small application to parse a proprietary data file which I need to load into a database (SQL Server). Initially, I built ADO.NET objects to persist the data to the database, but that was very slow. I know that I could dump the data to a flat file in (for example) .CSV format and then use bcp to load the data, but it seems like a waste when I've already got the data in ty... |
|
| JIT Compiled , how can i use precompiled code (5 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi , is there any other choise to create precompiled code insted of ngen.exe thanks |
|
| AppDomain.ProcessExit and AppDomain.DomainUnload (2 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi! I'm trying to use the AppDomain.ProcessExit and AppDomain.DomainUnload delegates to make some finalization stuff into my code. I'm writing a C# class that needs to update some perfomance counters when de AppDomain is unloaded. Using AppDomain.DomainUnload I wasn't sucessfull. Using AppDomain.ProcessExit I was almost sucessfull, because if the test console application exits correctly, the deleg... |
|
| Freeing Resources? (5 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi, I have a question about garbage collecting, and more specifically when it collects :) I'm creating a form instance with local scope in a button event handler: private void buttonAdd Click(object sender, System.EventArgs e) { Wizards.frmAddDataSourceXML frmAdd new Wizards.frmAddDataSourceXML(); frmAdd.ShowDialog(); } Is this instance then collected by the GC after the routine has completed, or ... |
|
| speed issue (4 replies) |
| microsoft.public.dotnet.framework.performance |
| .. is using the string object; i.e. strTestString.Length slower than: len(strTestString) ?? I seem to taxe a huge speed hit when putting string.length in a loop versus len() Kevin *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
|
| reading a file (3 replies) |
| microsoft.public.dotnet.framework.performance |
| I'm using the FileStream class to open a file and ultimately draw some shapes represented in the file. Is FileStream the way to go or should I look at MemoryStream? What does memory mapping mean and is this possible in .NET? Many thanks, Steve |
|
| DataSource:which is the fastest method? (3 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi all, I would like an advice. I immediately anticipate that I'm using Compact Framework. I should fill a DataGrid with some thousand of records. I tryied to do this using the DataSource property with a dataTable, but it is very slow method. Which is the fastest method? Can I use a DataReader to fill a DataGrid throught DataSource (in this case use the DataGrid in connected mode)? How? Thanks in ... |
|
| Why has byreference the same performance as byval? (5 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi, I'm trying to understand (have looked at the IL in release mode...) why a simple test showed equal results, and the byval test even is slightly faster. In VB6 for instance or MFC or anything not dotnet, copying by reference or byval makes really a difference... Not that I'm complaining about performance here, just curious :) The test is performed on a PIII 1 GYGhz and all optimizations have be... |
|
| SortedList vs. Hashtable vs. ArrayList (5 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi, I was wondering, what does give us the highest performance SortedList, hashtable or ArrayList ? My requestion is searching in these objects by a Key in big table (around 30,000 records), What will be the fastest ? 10x, Boba. |
|
| Newsgroup for performance counter related questions? (5 replies) |
| microsoft.public.dotnet.framework.performance |
| Where is the best place to ask questions about using the PerformanceCounter class in order to obtain counters from other servers. I am having some security issues as well as exception issues. I have done the permission related suggestions per Q158438 yet I must still have my monitor in the target machine's local administrators to see LogicalDisk counters. I get various unexpected exceptions someti... |
|
| Max Size of DataSet (2 replies) |
| microsoft.public.dotnet.framework.performance |
| hello folks, what is the maximum amount of data I can load into a Dataset. Thank you Anton |
|
| Performance and crashing in windows 98 (6 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi, I ve developed a .net app in c# using visual studio 2002 and windows xp (256MB RAM) as the development enviroment and, although the application consumes a large amount of memory while it is running, it runs fast and seldom (not to say never...) crashes. My customer s computers run windows 98 (64MB) and they say they won t upgrade the OS in the near future (say, the next six months). When I try... |
|
| minimum security to access performance monitor (2 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi, Does anybody knows the minimum security for my asp.net user (to process user) to access the "performance monitor" counter. I know it's working with "administrators" right. But since it's not the most secure way, what is the minimum security right or policy I should put to ASPNET windows user. Thanks! Laurent Allardin,MCSD,MCAD 2K1Soft Solutions inc. www.2k1soft.com |
|
| ASPX Not releasing Serviced component (C#) references. (12 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi All, I have developed a N Tier application whereas ASPX is calling into business layer (C# Serviced components, JIT Activation enabled) which calls into data access layer (C# Serviced components, JIT Activation and Object Pooling enabled) residing on the same machine that connects to SQL Server 2000 running on a seperate box. everything is running fine but my appliaction isn't scalable. Here is... |
|
| Fastest way to display 2000 records? (3 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi, Many applications I write make extensive use of list screens and often require large numbers of records to be displayed. I was wondering if anyone has compared the performance of the different methods of generating lists available to us in the .NET environment. Do bound server controls like the DataGrid often any speed/efficiency advantages over traditional Response.Write calls? Also, has anyo... |
|
| AverageTimer32 performance counter type and instance-level counters (3 replies) |
| microsoft.public.dotnet.framework.performance |
| Hello group, I'd greatly appreciate any help on the following issue: I am trying to instrument an application with the AverageTimer32 type of performance counters to measure average call time per method (of course this is done only for methods that consume relatively significant amount of time). I would like to have the following counter layout: My App Counters (category) Average Call Time (the co... |
|
| AverageTimer32 Strangeness (2 replies) |
| microsoft.public.dotnet.framework.performance |
| BEGIN PGP SIGNED MESSAGE Hash: SHA1 All, I am utilizing an to measure the average amount of time it takes for a specific processing operation to complete on a given item of data. The counters are created just fine, and I am able to update the values and see changes in perfmon. For reference, a simplified version of my code is at the end of this message. Now, at first glance everything *appears* to... |
|
| StringBuilder vs. string for Label Control (12 replies) |
| microsoft.public.dotnet.framework.performance |
| I have seen a few article on the StringBuilder. I can see how this applies to the string variable However, does this apply to the Web Label control. Or would I even it do it that way..... Should I declare a string (I mean string builder) outside the FOR LOOP and assign the results to the label control after the loop is finished....or does it matter? I have 2 methods below // METHOD 1 Label using t... |
|
| thread count too big (11 replies) |
| microsoft.public.dotnet.framework.performance |
| Hello, I have a windows service that periodically invokes a web service method. I currently use the Threading.Timer class to invoke the appropriate logic at specified intervals. Also, the web service proxy object goes out of scope each the the method gets invoked. So far so good the problem is that if I leave the service running over night the thread count (in task manager/perfmon) keeps increasin... |
|