Re: How to set the compiler to handle thousand loops ?
- From: Martin Gregorie <martin@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 31 Oct 2008 12:13:47 +0000 (UTC)
On Fri, 31 Oct 2008 04:24:01 -0700, tobleron wrote:
So, I want to know, is there any way to make adjustment in IDE, may beSo, if I understand your description, what you're doing is:
for buffer setting, or some thing like that ? I used 512 MB of RAM, and
I seek another possible ways other than "add more RAMs". Please advise.
read file into a buffer
for each line in the buffer
split into channels
re-code into DICOM (little endian) format
append line to output buffer
end-for
write output buffer to a file
If I'm wrong, please describe your logic as an SSCE or in pseudocode.
Otherwise, why buffer entire files when you appear to be processing the
data line by line? Read from the file line by line and output each
converted line as its completed and your memory problems will vanish.
--
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |
.
- References:
- How to set the compiler to handle thousand loops ?
- From: tobleron
- Re: How to set the compiler to handle thousand loops ?
- From: RedGrittyBrick
- Re: How to set the compiler to handle thousand loops ?
- From: tobleron
- How to set the compiler to handle thousand loops ?
- Prev by Date: Re: Electronics
- Next by Date: Re: Is statement.executeBacth() a transaction?
- Previous by thread: Re: How to set the compiler to handle thousand loops ?
- Next by thread: Re: How to set the compiler to handle thousand loops ?
- Index(es):
Relevant Pages
|