all groups > dotnet performance > april 2006
DataSet.Clear method is very slow
Posted by ala at 4/29/2006 11:39:01 PM
Hi,
How to speed up cleaning DataSet?
In my windows form application, I have many controls bound to tables in a
dataset object.
If I should unboud thes controls before calling Clear on DataSet?
... more >>
copying stream - advise needed
Posted by SharpCoderMP at 4/25/2006 12:24:41 PM
hi,
Iv'e seen two ways of copying streams in .net:
Stream outStream = MemoryStream();
Stream inStream = CreateSomeMemoryStream();
byte[] buffer = new byte[inStream.Length];
inStream.Read(buffer, 0, buffer.Length);
outStream.Write(buffer, 0, buffer.Length);
and the second one was more or... more >>
Slow remoting of byte[]
Posted by Martin Müller at 4/25/2006 6:33:01 AM
Hi community!
Perhaps someone can explain this performance problem:
I'm trying to spool files via remoting over a TCP channel with a binary
serializer.
To get the file's bytes from my server class to my client, I used methods
like these:
int OpenFile(string filename) // To open the file on... more >>
Q: System.Diagnostics.PerformanceCounter usage
Posted by Enzo at 4/24/2006 11:01:01 AM
I have a test app where I am using System.Diagnostics.PerformanceCounter.
In the VS.NET 2003 DESIGNER I choose:
CategoryName = 'Process'
CounterName = '% Processor Time'
I want to programmatically display a list to the user of "InstanceName"
values.
Is there anyway to get the "same" l... more >>
cast type check performance
Posted by Etienne at 4/18/2006 12:51:49 PM
Hi guys,
Does anyone here has already done some test related to the performance
of doing a safe cast?
Which one of those two snippet do you think would be a better
alternative (relative to performance) most of time?
// # 1
public override bool Equals(object obj)
{
... more >>
string.<insertStaticMethodHere> performance in multithreaded envir
Posted by dave.dolan at 4/18/2006 10:35:03 AM
The old saying goes something like, "Hey stupid, don't use static methods
when you're going to call that function a lot from multiple threads, if you
want to have any kind of good performance" at least I think that's how it
goes.
Anyway, I get the idea behind it, because it's locking the s... more >>
Delay inside a loop
Posted by Jens Weibler at 4/16/2006 12:29:56 PM
Hi,
I've got a problem: sometimes a inner loop takes more than 0 milliseconds..
Example-Code (take a windows form, add one button and two textboxes):
private void button1_Click(object sender, System.EventArgs e)
{
int iLangeSchritte = 0;
long lngTicksGesamt = 0;
StringBuilder sb... more >>
Data Performance using DataReaders and DataSets
Posted by Shivesh Vaidya at 4/16/2006 5:52:02 AM
I need to process several million records stored a database and derive
several million processed records to be saved.
The processing is moderately complex where I need to compare the retrieved
records in order to derive the results.
Currently I am using Datasets (Master Detail structure) to ke... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Local variables Vs Member Variables
Posted by Zeeshan Gulzar at 4/13/2006 5:00:02 AM
I am writting a performance critical application and want to know about
following:
A method is called at every mouse move or says method calls frequently.
The method is like this
public void form_mouseup(object sender, EventArgs e)
{
int x = y * 12; //Here y is a member variable(int)... more >>
DataReader Performance: Is it a myth?
Posted by Fred Taylor at 4/11/2006 10:27:52 PM
I created a simple test scenario that compared the performance of a
DataReader vs. a strongly typed DataTable. It seems that it is indeed
quicker to traverse the result set when using the DataReader, but once you
try to read the actual columns of the data, you lose all the benefits.
When yo... more >>
Performance Monitor Not Logging .Net CLR Counters?!?
Posted by bu at 4/10/2006 2:23:07 PM
I have duplicated this on 4 different workstations running WinXP and the
..Net framework. Viewing any of the .NET CLR counters in PerfMon works fine
when viewing then "live," but fails to capture any data when setting them up
as scheduled captures under Counter Logs. All of the non-.Net coun... more >>
win32 service 2 service communication
Posted by Bob at 4/5/2006 10:38:10 AM
I have 2 win32 services written using C# that need to communicate with each
other. They are passing back and forth large blobs of binary data. Can
anyone suggest the best performing way to transfer the data. Right now I am
using sockets but I am not sure if its the best way. Does anyone ... more >>
Disk access performance
Posted by huayra at 4/5/2006 7:46:02 AM
Hi All,
I am working in an application, where multiple threads have parallel disk
access to process each one file. The threads are independent, no critical
section or syncronization between them exist nor is necesary. They do not
process the same file.
I expect that if I launch more tha... more >>
Factory Restore Mistake
Posted by Barbi needs help at 4/4/2006 3:58:02 PM
I made the mistake of doing a "Restore to Factory" before thinking and I lost
years of pictures. PLEASE tell me I can get them back.
Thanks Barbi... more >>
Hex and int32
Posted by Tim Payne at 4/3/2006 1:24:38 PM
Hi,
I've just been looking at some code that someone's asked me to look at. They
guys who wrote it has used Hex numbers for all his constant int32 variables.
For example, instead of having:
for {int x = 1;x <= 31;x++}
they instead have:
for {int x = 1;x <= 0x1f;x++}
Is there any signi... more >>
|