I
Iulian Ilea
Hello,
Let's say that I have a very big string to write into a file.
If I concatenate strings and write the string into file at the end of
processing than memory use will increase exponential. - BAD
If I open a file and instead concatenating strings I write it into a
file. At the end of processing I close the file. Ok, this works, memory
usage increases but not exponential.
Another method is to open a file, write string and close file. This
actions repeats until the end of script processing.
Which is best?
I hope you understood because my english is not very good.
Let's say that I have a very big string to write into a file.
If I concatenate strings and write the string into file at the end of
processing than memory use will increase exponential. - BAD
If I open a file and instead concatenating strings I write it into a
file. At the end of processing I close the file. Ok, this works, memory
usage increases but not exponential.
Another method is to open a file, write string and close file. This
actions repeats until the end of script processing.
Which is best?
I hope you understood because my english is not very good.