Re: Suggestions to reduce memory use when splitting a string
- From: "David Browne" <davidbaxterbrowne no potted meat@xxxxxxxxxxx>
- Date: Mon, 3 Apr 2006 13:59:00 -0500
"klineb" <briankline@xxxxxxxxxxx> wrote in message
news:1144088149.283259.318880@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Good Day,
I have written and utility to convert our DOS COBOL data files to a SQL
Server database. Part of the process requires parsing each line into a
sql statement and validting the data to keep the integrity of the
database. We are parsing roughl 81 files and range in size 1 kb to 65
MB files (Average of 400,000 lines in the larger files).
I have written this utility with VB.NET 2003 and when I parse all of
the files I run out of memory. The following functions seems to be the
main source of my leak. Any help optimizing this code is appreciated.
There are a few tweaks you can apply here to reduce memory utilization (in
particular you can perhaps reuse the StringBuilders). However there's
nothing obvious and terrible here. In short this function should not cause
an out of memory error.
David
.
- References:
- Prev by Date: Re: Form Focus
- Next by Date: Re: Runas
- Previous by thread: Re: Suggestions to reduce memory use when splitting a string
- Next by thread: Re: Suggestions to reduce memory use when splitting a string
- Index(es):
Relevant Pages
|