all groups > dotnet performance > november 2003
Filter by week: 1 2 3 4 5
Startup Performance
Posted by David Battams at 11/29/2003 7:40:14 PM
Hi there,
I've been tasked with the job of improving startup time for several .Net
applications. The applications are written in C#, targeting the v1.1
framework.
I'm interested in hearing any tips on how I should approach this. I'm
already aware of the following strategies, so no need to m... more >>
Performance Counter with Multiple instance
Posted by Michael at 11/25/2003 7:17:55 PM
Any one has sample code to create multiple instances for a performance
counter?
Thanks;
Michael
... more >>
PAGE FAULTS - 800 000 in few minutes
Posted by Crirus at 11/25/2003 3:00:02 PM
Hello
I just noticed in TaskBar that my application generate lots of page
faults...
That seems to happend on paint event of my custom control.
What could be the cause of it?
I draw a full screen bitmap into my control
That bitmap I create from multiple tiles...(the bitmap is a map)
When... more >>
Object Equality
Posted by Doug Holland at 11/25/2003 1:29:32 PM
Currently I am responsible for writing the C# coding standards document for
a client and I have been doing some investigations with ildasm to establish
some additional best practices.
When using either the C# equality operator '==' or the object.Equals()
methods, which is better?
Personally... more >>
Performance question regarding reflection
Posted by Invalidlastname at 11/24/2003 5:30:51 PM
Hi,
In our project, we used XSD.exe to create the classes, not dataset, which
represent the data entities from xsd files for passing among the tiers.
We want to set the default value for all numeric fields to be -1 in our data
entity classes. I know this can be done by setting the default value
... more >>
Tree view and Datagrid
Posted by Kishor at 11/24/2003 12:54:02 PM
Hi,
In Visual basic6 there are so many grids using which we can display the tree
structure (Multiple column). Same thing I am planning to display the result
of query in a tree format, instead of grid. I wanted to know how to convert
this data grid in to a tree view?. I am using vb.net as a... more >>
Is there a .NET or C# to native x86 compiler?
Posted by Andy Chau at 11/22/2003 11:29:20 AM
Is there a .NET or C# to native x86 compiler? I am not looking for just a
prejitter progrom like ngen, but a true native compiler like the gcc for
java if there is such a thing.
Thanks
Andy
... more >>
CPU issues at development time
Posted by Joe Abou Jaoude at 11/22/2003 1:27:55 AM
I m facing CPU issues at development time. For example sometimes I write
a line of code and press enter , and the IDE freezes for 4-5 second and
the CPU is at 100%.
We are using Visual studio source safe.The application is large
enough.(6 projects, and around 1400 files in the solution). we have... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Resource consumption of System.Timers.Timer
Posted by Kishore Prakash at 11/21/2003 12:23:45 PM
I need to monitor some large number (about 30,000) of objects periodically.
Development is easy if I create timers for each one of them. But I am afraid
this may have some problems, with resource consumption.
Does each instance of a timer from System.Timers.Timer consume a Win32
Timer.
How m... more >>
COM And .NET Objects Calling Interop Assembly
Posted by Onno Ceelen at 11/21/2003 11:08:12 AM
Hi,
I've a migration scenario where I rewrite a COM object to an .NET interop
assembly (so, still callable from COM). What is the impact if I continue my
step-by-step migration and have a scenario where my .NET objects start to
call .NET interop assemblies? Is there an overhead included?
Fo... more >>
What would be a faster alternative to boxing/unboxing?
Posted by Mountain Bikn' Guy at 11/20/2003 5:34:50 PM
I have a situation where an app writes data of various types (primitives and
objects) into a single dimensional array of objects. (This array eventually
becomes a row in a data table, but that's another story.) The data is
written once and then read many times. Each primitive read requires
unbox... more >>
AverageTimer32
Posted by Michael at 11/20/2003 3:25:17 PM
All,
I am not sure if this is already a known issue.
When I calculate the time elapse for a partular activity
using AverageTimer32 type perfmon counter, should I use:
long t1=DateTime.Now.Ticks;<--1
//some activities
long t2=DateTime.Now.Ticks;<--2
MyAverageTimer32.incrementBy(t2-t1);
... more >>
Performance of properties vs method calls
Posted by discussion NO[at]SPAM discussion.microsoft.com at 11/20/2003 2:34:33 PM
Hi,
Since small method calls are inlined when the IL size is 32 or less.
Take for example..
// Method (inlined)
public bool getVal()
{
return someVal;
}
// propget
public bool Val
{
ge { return someVal; }
}
Which is faster? If the method is ... more >>
thread pooling
Posted by Lisa Sonneson at 11/19/2003 8:34:35 AM
Hi.. I created a .NET windows service that transfers data from and to
different data sources. I would like to use thread pooling to add the
flexibility to run transfers simulteneously but want to be able to control
what transfers go into what threads. Don't know how thread pooling works.
Plea... more >>
Memory usage of a .NET windows forms
Posted by Ágúst at 11/19/2003 1:34:02 AM
Hi
I have just released a new program within my company. It
is a windows forms application with a webservice at the
backend.
I'm getting questions about the memory usage of the
program, it uses around 30-40 MB. Now, I have heard that
the first .NET program you run on the machine has the ... more >>
VB6 v VB.NET performance
Posted by Ber at 11/18/2003 3:39:26 AM
Hi,
We are currently looking at upgrading a large web app on
ASP Clasic & VB6, to .NET. To justify the spend, we need
some indication of expected performance increases if we do
a straight port. I've seen figures indicating ASP.NET
performance 2-3 times improved but nothing on the VB6 c... more >>
CLR Profiler v2 & ASP.NET: doesn't work
Posted by Russ Bishop at 11/15/2003 1:21:27 PM
The profiler just sits forever at "Waiting for ASP.NET worker process to
start".
I have verified it places the environment registry vars in their correct
place. However when I navigate to my ASP.NET app and aspnet_wp.exe starts up
the profiler doesn't seem to recognize that or connect with it.... more >>
Synchronous Sockets.
Posted by Rajesh.V at 11/15/2003 11:53:34 AM
I dont find it difficult to program them using threads. Any one know if this
is not very good choice. I will be dealing only with one socket which has
data coming at regular intervals of around 1kb ea.
Rajesh
... more >>
Large Object Heap
Posted by Shyam Sundar Rajagopalan at 11/14/2003 1:10:27 PM
Hi,
We are encountering problems due to memory usage and here is the
description..
Brief Introduction
Large Object Heap shows monotonic increase in size for .Net components
deployed in COM+
Problem Description
For the purpose of increasing scalability and leverage connection pooling... more >>
CLR Profiler - "Histogram By age broken"
Posted by xxrj43 at 11/14/2003 8:53:40 AM
I have vainly attempted to get the CLR Profiler to display its "Histogram by
age" view.
I get a System.FormatException - Input string was not in a correct format
This happens with different log file captures, and happened both with the
CLR Profiler available on GotDotNet, and the one availab... more >>
System.Diagnostics.PerformanceCounter
Posted by Jerry Negrelli at 11/13/2003 2:24:04 PM
Does anyone have a good reference to the inner workings
of the PerformanceCounter class and its related classes?
Specifically, I'd like to know how a PerformanceCounter
object connects to a remote machine to retrieve data. Is
it through WMI, SNMP, etc.??
Even if it's just "Run ildasm ... more >>
ASP .NET Application Requests Queued
Posted by Vani at 11/12/2003 4:48:13 PM
Is there any setting (software/hardware??) to allow more
requests to be processed by asp.net process.(I was
monitoring ASP.NET Applications Object and Requests
Executing counter.)which constantly showed requests are
being queued up.
TIA
Vani... more >>
Performance Counter reference guide
Posted by Jerry Negrelli at 11/12/2003 12:51:43 PM
Can anyone point me to a reference of applications and
their Windows NT Performance Counters?
Specifically, I'm trying to compile a list of products
and their related counters so that I can say, "So you
have SQL Server 7.0? Then you probably have these 15
counters defined."
Jerry Negr... more >>
Fast Sorting
Posted by Nick at 11/12/2003 10:43:17 AM
Hi !
Does anyone know when there will be a faster
implementation of Sorting in c#, because sorting
of only 300 Strings is extremly slow. And implementing
sorting for objects via CompareTo is also much too
slow because you have to cast the object to access
the member which is to be sorted.
... more >>
Microsoft ACT: real requests not simulation possible?
Posted by n_o_s_p_a__m NO[at]SPAM mail.com at 11/11/2003 2:46:19 PM
Hi all, I have an ACT project setup with a test that seems to be
working, based off a recording.
However, I don't want to perform a *simulation* of http requests, I
want *real* http request/reqponse.
ACT seems to only *simulate* playback of my recorded clicks and
navigations.
Do you know... more >>
VS.NET 2003 IDE startup delay when connected to network
Posted by ng950 NO[at]SPAM yahoo.com at 11/11/2003 11:54:05 AM
Hello!
I have following developing environment:
Visual Studio.NET 2003
..NET Framework 1.1
local ASPNET account exists
Windows XP Professional
All worked perfectly for months.
Since yesterday opening IDE (Start -> MS Visual Studio.NET 2003)
WITHOUT loading any file or project or sol... more >>
Code security
Posted by J_Max at 11/11/2003 7:58:20 AM
Hello,
I recently wrote an app for my PocketPC. One day,
accidentally, I ran it on my local computer, and it
displayed an exception. Out of curiosity, I click Visual
Studio .NET, and when it opened, it displayed all of my
code. Is this because of .NET, or because I developed
this applic... more >>
Performance counter viewer
Posted by Balu at 11/11/2003 3:54:38 AM
Greetings,
Has anyone written or come across a windows form control
for viewing performance monitor data?
Thanks.... more >>
FastTCP
Posted by discussion NO[at]SPAM discussion.microsoft.com at 11/10/2003 5:58:34 PM
Is there a draft implementation of the FastTCP protocol? Has anybody
implemented this in C#?
Its there crying to be used in p2p.
... more >>
JIT vs Bitfield optimiztion
Posted by discussion NO[at]SPAM discussion.microsoft.com at 11/10/2003 4:18:56 PM
Does the JIT perform the following optimization?
unoptimized loop check..
foreach(MemberInfo mi in mia)
{
if ( ( (mi.MemberType & MemberTypes.Field) > 0)) && ( (mi.MemberType &
MemberTypes.Property) > 0 ) )
{
// do something
}
}
optimized...
MemberTy... more >>
Unit testing tools for .NET ?
Posted by gicio NO[at]SPAM web.de at 11/10/2003 11:35:13 AM
Hi!
I'm looking for unit-testing tools for .NET.
Somthing like Java has --> http://www.junit.org
regards,
gicio
... more >>
Data import wizard
Posted by Bob at 11/9/2003 7:34:36 PM
Hi
was wondering if any knows where I can find code example that recreates the
data import wizard in Access (or something similar)... this wizard lets
the user select the data separator, select the columns that should be
imported and even map the columns to the dabase table column names.
The pr... more >>
C# : When exactly should a StringBuilder be used?
Posted by gicio NO[at]SPAM web.de at 11/9/2003 7:06:31 PM
Hi!
I'm very interesting in when to use exactly the StringBuilder?
For example for something like this?:
String strTest1 = "This";
String strTest2 = "Test";
StringBuilder stbTest = new StringBuilder();
stbTest.Append(strTest1). Append("is a "). Append(stbTest);
can someone provide s... more >>
even or odd comparision optimization
Posted by discussion NO[at]SPAM discussion.microsoft.com at 11/8/2003 1:41:58 PM
Hey
Does the JIT perform this optimization?
old unoptimised even or odd test using modulo
if ((someVal % 2) == 0)
// even
else
// odd
optimized code
if ( (someVal & 1) == 0)
// even
else
// odd
... more >>
Control size BUG! URGENT
Posted by Filipe Freire at 11/7/2003 4:14:46 PM
Hi there,
I think I found a critical bug in Studio .net 2003.
Try this,
Create a Form.
Create a Panel within the Form.
Create a Button within the Panel.
Now set the Button's Location.Y property to a value that it becomes above
the panel's visible area, for example, set Location.Y to -30... more >>
Running App From Network Issue
Posted by Buddy at 11/5/2003 2:16:47 AM
Hello,
I have an application that references about 40 assemblies
(approx 80MB in total). I've installed the application on
the network share and given a client PC full trust access.
When I launch the application from the network it takes
approx 4 minutes to startup, I've done network tr... more >>
What's the right way to do this? (threading/AppDomains)
Posted by Mountain Bikn' Guy at 11/4/2003 8:45:10 PM
I need some advice on this. I am working on a fairly complex calculator app
(C#) with lots of functions (and these functions in turn use math functions
from an unmanaged C DLL). A calculation takes a lot of time (up to hours),
and should run on a separate thread from the one that the GUI uses. Th... more >>
performance counters as event sinks in Enterprise Instrumentation?
Posted by barnaby_morris NO[at]SPAM hotmail.com at 11/4/2003 4:23:25 PM
I have been investigating the Microsoft Enterprise Instrumentation
Framework as a flexible logging solution for our software. In addition
to logging, we need to have performance counters for ongoing
monitoring by the operations staff. It seems to me that performance
counters can be thought of as... more >>
Sorting Objects implementing CompareTo !TO SLOW!
Posted by Nick at 11/4/2003 1:35:24 AM
hi,
to sort ma objects i implement the Method
CompareTo.It looks like this:
public int CompareTo(Object obj)
{
return this.Name.CompareTo(((Ort)obj).Name);
}
well, sorting a few thousand objects with this
it's much to slow. the app can't wait for so long
to start. if i implement the Co... more >>
WorkerThreads and IOThreads
Posted by quique at 11/3/2003 10:28:07 AM
Hello,
Can anybody explain me the difference between the meaning
of the parameter configuration of the machine.config file
maxWokerThread and maxIOThread?
If an http request has to access to bd or web service...
needs two threads to attend it, one worker thread and
another ioThread??
P... more >>
Optimization of loops and tests
Posted by news.microsoft.com at 11/3/2003 12:14:31 AM
How will the compiler / JIToptimise the following?
for (int i = 0 ; i <= (stop - start)/step ; i++)
{
if (a = Axis.X)
{
g.DrawLine(blah
}
else
{
}
}
Would it make the test outside the for and save checking f... more >>
obscfuators
Posted by news.microsoft.com at 11/2/2003 11:22:14 AM
Do they affect performance of an app?
... more >>
Sorting a Directory by Modified Date?
Posted by David Cardinal at 11/1/2003 10:13:45 PM
Every method I can think of for sorting a directory by file modified date is
very slow, as it appears that the .NET libraries need to do an Open &
GetInfo on every single file entry.
I've tried building an array of .FileModified dates to use for the sort, and
also using .GetFileSystemInfos to ... more >>
|