[fpc-pascal] How to save a huge XML?
md at delfire.net
Wed Jun 19 18:58:55 CEST 2013
On Wed, Jun 19, 2013 at 1:48 PM, waldo kitty <wkitty42 at windstream.net> wrote:
> On 6/19/2013 06:14, Graeme Geldenhuys wrote:
>> On 2013-06-19 08:47, Michael Van Canneyt wrote:
>>> The problem is that the source XML is completely in memory, which is why
>>> it takes so much memory after while.
>> And if "logging" is the use case, XML is by far the worst format anybody
>> could choose.
> yep... if it were myself, i would log in a regular more normal logging
> format... then i might create a tool to parse the log and output xml line by
> line as has been discussed... that way the logging is still as fast as it
> can be while those desiring xml can process the logs and get what they
> want... or they can create their own tool... but i guess $$$ talk, too ;)
The change was done.
I converted the sources to use simple files calling Assign(Handle,
'path') and Writeln('info'). Works and is faster.
Thank you all.
More information about the fpc-pascal