Re: File Stream - Performance is getting slower and slower - why?
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Fri, 21 Apr 2006 19:42:39 +0100
m00nm0nkey <m00nm0nkey@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Don't worry about these - basic database operationsSetFragmentCallCount
CreateRawDataFragment
This is the key point in this routine - it's basically the entire file,colRawDataFile
loaded into a collection - therefore, this collection has 334,386 entries in
it.
What kind of collection? If it's some kind of linked list, it would get
horribly slow.
Have you tried removing pieces of the routine (such as the database
operations) and seeing whether that makes a difference?
If this doesn't help, could you post a short but complete program which
demonstrates the problem?
See http://www.pobox.com/~skeet/csharp/complete.html for details of
what I mean by that. (Ignore the fact that it talks about C# - the same
can be done in VB.NET easily.)
If the database calls aren't the problem, then stripping those out to
produce a short but complete program shouldn't be an issue, and you can
generate random strings to put into the collection.
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.
- References:
- Prev by Date: VS adds ResX file to my form
- Next by Date: Re: .NET Framework 2.0 installation
- Previous by thread: Re: File Stream - Performance is getting slower and slower - why?
- Next by thread: Re: File Stream - Performance is getting slower and slower - why?
- Index(es):
Relevant Pages
|
|