all groups > dotnet performance > june 2004
String Concatenation in VB.NET
Posted by YGeek at 6/29/2004 3:06:01 PM
Is there a performance issue with using & to do string concatenation versus using the String.Concat method? What is the best practice for doing string concatenation in VB.NET?... more >>
How to set up Server GC?
Posted by chrisben at 6/27/2004 10:14:02 AM
Hi,
I have a .NET server application (GUI interface in C#). It has been working well until I have to load almost 1GB data into the memory recently. I am running Win2k Server with 2GB RAM and dual processor with hyperthreading. The problem is the data will be loaded fine during the initialization ... more >>
Longer execution time under Release build...
Posted by Mariusz Muszalski at 6/25/2004 8:36:07 AM
Hi there,
I was testing performance of the some classes recently and spotted strange
behaviour: simple loop executes faster when compiled under debug
configuration than release... Take a look:
DateTime before;
DateTime after;
TimeSpan total;
before = DateTime.Now;
int j;
for(int i=1; ... more >>
Regarding Opening a 1GB File for Processing.
Posted by Ashish M Bhonkiya at 6/23/2004 5:37:40 PM
Hi Group,
I have a huge one GB file to do some processing (sorting) using .Net
Framework (C-Sharp language). What is the best efficent way to do this.
I have tried opening the file and reading it in blocks and do the sorting,
and mergining the file, but its taking huge time more than 30 mins... more >>
Application Center Test setting concurrent Users
Posted by Bob G at 6/23/2004 9:13:31 AM
I am running an ACT test to stress my web application. I
have created my script, which seems to work fine. I want
to run with 500 concurrent users, but when I do this it
seems the test center sends all 500 requests at once, this
is causing many of the connections to fail. What I would
like... more >>
I miss C inline and macros / Optimizing functions
Posted by ViperDK (Daniel K.) at 6/22/2004 10:52:27 PM
Is there any way to mark functions for optimization or is the only way for
that to use something like an external preprozessor.
Say e.g. i have a verrry simple function like...
bool SetValueAndFire(string name, object value, EventHandler handler)
{
if(base.GetValue(name).Equals(value))
... more >>
Object instantiation
Posted by onurbyk at 6/21/2004 11:47:01 PM
hi,
i have a big database interaction class with many CRUD operations in it. We create instance of the class, and call a single function. Something inside me tells i can gain a performance boost if i convert this database interaction class to static (Shared in VisualBasic). Is it true?
If it ... more >>
GC.Collect(2)
Posted by avnrao at 6/21/2004 5:11:08 PM
Hi,
I am trying to figure out how GC.Collect(2) works. here is what I did.
I created a windows form with a button. on click of button, i have this
simple code.
object obj = new object();
GC.Collect(2);
return;
before I press the button, I check these values in perfmon. (dont worry
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
large viewstate
Posted by rasta at 6/20/2004 10:52:11 PM
on an order entry form i have listbox showing customer lisitng @ approx
100kb and also its corresponding viewstate.
this has a very neg impact on perf as each page load is about 300kb and
takes several seconds.
my Q is what alternative do i've, i dont mind taking the hit once, but since
the... more >>
Fisrt Time
Posted by msnews.microsoft.com at 6/19/2004 2:56:55 PM
Hi!
I have a very strange problem, I know I have to expect that first time
loading of a .NET application will take some extra time, but how can I open
a Splash during that time?It takes at least 5 seconds until my sub Main
process first line, I tried to put in cache the assemblies during
regis... more >>
Why is BinaryWriter.Write7BitEncodedInt a protected method?
Posted by Chris at 6/18/2004 1:23:33 PM
Why is the BinaryWriter.Write7BitEncodedInt a protected method? I wish
to use this functionality out of the box, yet I must override the
BinaryWriter class to do so, just curious why Microsoft?
Thanks in advance.
-Chris
... more >>
Loading large files
Posted by Gregor Wind at 6/16/2004 1:40:17 PM
Hello all,
I'm trying to make a 3D transformation with image data. For the 3rd 1 D
transformation I have to jump in a 12Gbyte file, to get the data for the
transformation. The jumpimg in the file cost a lot of time. I am doing the
filehandling with help of the filestream and binaryreader class... more >>
BinaryWriter.Flush and BufferedStream.Flush
Posted by Chris at 6/16/2004 10:52:09 AM
I wish to use a BinaryWriter on top of a BufferedStream on top of a
NetworkStream which is of course on a Socket.
When I call the Flush method of the BinaryWriter I know that this should
flush any data in the BinaryWriter's buffer, however does the BinaryWriter's
Flush method call the underl... more >>
Informix .net provider - Sql server .net provider
Posted by BS at 6/16/2004 9:45:22 AM
Hello everybody
We are currently writting a small app that will be delivered on an Informix
DB and a Sql Server DB. We will be doing some performance check pretty soon
for both databases.
Is anybody using something else other than the IBM informix provider, and
the regular SqlServer provide... more >>
Using Keyword Dispose and GC
Posted by mpatel NO[at]SPAM focus-technologies.com at 6/16/2004 6:17:31 AM
Our .Net team have been pondering about using keyword.
We are using streams FileStream and BufferedStream. We use using
keyword at FileStream, and not BufferedStream which wraps FileStream.
So bunch of people said what if exception occurs buffered stream is
not closed.
My Argument is over ... more >>
arraylist.clear
Posted by kk at 6/15/2004 5:28:01 AM
I have a class vaiable of type ArrayList, I would like the varaible never to be collcted by the GC, at some points however I need to call the clear method on the variable.
Am I correct in thinking that the calling clear on this varaible, makes the variable elegable for GC to dispose of it?
And... more >>
EndAccept takes 5 seconds to throw ObjectDisposedException
Posted by abdullah at 6/14/2004 4:54:01 PM
Hi,
I am trying to close a socket on which I am listening. I know that this will cause the ObjectDisposedException to be thrown. The problem is that it takes 4-5 seconds for it to be thrown. Is this _normal_ or could it be due to some other issue?
Sample code for this is below.
try
{
So... more >>
MSMQ and Sockets
Posted by SRLoka at 6/14/2004 4:34:46 PM
I have a app that listens on a TCP Socket and sends all the incoming
messages to a Queue. There is another thread that does a Receive on the MSMQ
and so block waits until a message arrives. The Socket also does a Receive
and block waits until a message arrives. Which is better - a blocking
Recei... more >>
Copy large dataset
Posted by Jeroen Pot at 6/12/2004 12:15:25 AM
Hi i need to copy a large dataset to an other database
I also wrote the dataset to an XML file, with a very huge performace
difference.
Any suggestions how to improve the write to the database?
Result for xml fine < 1 second, and to database 1 minute 52
My source:
// Source database
... more >>
Real life cost of using exceptions for control flow?
Posted by miyra70 NO[at]SPAM yahoo.com at 6/10/2004 3:37:22 PM
Hi. I'm working with an app that uses exceptions for control flow.
These are code blocks where exceptions are thrown/caught regularly. A
couple hundred exceptions occur per hour and they're caught close to
the point of origination. I'm trying to decide whether to refactor...
What is the cos... more >>
CLR Profiler triggering VC++ debug library assert error
Posted by Kunle Odutola at 6/10/2004 3:04:21 AM
The CLR Profiler tool always crashes part-way through when I use it to
profile an app I'm developing. Outside of CLR Profiler, the app normally
runs for about 20 minutes doing heavy text processing. With CLR Profiler it
runs for about 2-5 minutes and then triggers an assert dialog in the
underly... more >>
Threads and garbage collection
Posted by kiran khatra via .NET 247 at 6/9/2004 1:36:40 AM
Hi,
I have an application that uses an api to receive call backs on=
the main UI thread=2E The application also has a system timer=
that will at a given time interval ascyncronously call a=
calculate method and then update the display of the form=2E
However each time the garbage collect... more >>
rebase native images, please help
Posted by Claus Klammer at 6/8/2004 4:29:42 PM
Hi,
I've some questions regarding rebasing.
How does the process of ngen work which sets the base address? I observed
that some native images have got the same base address. Will this harm the
startup performance?
I read an article which mandates that choosing the appriate base address can
l... more >>
ASP.NET Requests Queuing on one server only
Posted by tron9901 NO[at]SPAM msn.com at 6/8/2004 7:12:54 AM
I support a web server farm of about 80 machines, of which 35 are in
Production at any given time. Machines are running Windows 2000
Advanced Server with IIS 5. All 80 machines are configured exactly the
same in regards to software, yet only one machine repeatedly shows
queuing on the performanc... more >>
What makes VB.Net XslTransform REALLY REALLY SLOW?
Posted by Lenonardo at 6/7/2004 2:15:01 AM
HI.
I've just started working with VB.Net to put a wrapper around an XML
processing application.
This application bascially presents a user with an iterative loop of
- load XML
- Transform for display to user
- collect user amendments to XML
- update XML
and round we go again.
I am u... more >>
Re: Memory Leak Experts!!!!
Posted by microsoft.news at 6/5/2004 5:40:55 PM
Anynone?
"microsoft.news" <msuot@dmod.com> wrote in message news:...
> Hi all,
>
> Here is the example i would like everyone to concentrate on:
>
> static void Main(string[] args)
> {
> System.Collections.ArrayList list = new System.Collections.ArrayList();
> System.TimeSpan tenMins =
... more >>
GC generation 2 heap problem
Posted by Mike Emerson at 6/4/2004 2:06:05 PM
I have a server application that runs continuously on dotnet V1.1. It gradually uses memory until it reaches 600M to 700M and then it either hangs, or it starts returning memory errors. I have a call to GC.GetTotalMemory(true) in the code and it never returns more than 6M. Perfmon reports almost ... more >>
New MSIL Newsgroup
Posted by Raymond Lewallen at 6/4/2004 11:43:47 AM
Microsoft,
Can I make a request for a newsgroup specific to MSIL? I have taken great
interest in MSIL and have done a lot of reading into MSIL, and written,
compiled and tested with success a few il programs. I'm sure this is a
topic of interest to many people, as it is at the heart of .Net.... more >>
Finding CPU % usage of a process
Posted by srihari at 6/3/2004 12:56:02 AM
I have a doubt regarding the extraction of CPU % usage of a particular process at a particular point of time using the .NET framework. I see that there are only methods for extracting the total CPU usage time, privileged CPU usage time and user CPU usage time. And they are all in DateTime format. I ... more >>
Measuring size of Session object
Posted by Roger Kjærnsrød at 6/1/2004 2:57:24 PM
We are building an application that must be able to handle up to 60000
simultaneous users.
Therefore I would like to know how much memory each of the users session
object uses.
Is there an easy way to measure the size of each Session object?
... more >>
Methodbase.GetCurrentMethod performance overhead
Posted by dt at 6/1/2004 9:27:36 AM
Hi All,
Has anyone done any benchmarks with Methodbase.GetCurrentMethod? I would
like to get an idea on the kind of overhead this imposes on the code.
Basically, what I'm doing is passing the CurrentMethod to a centralised
ExceptionHandler and want to get the name of the function that threw ... more >>
|