Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Parsing enormous.pgn

Author: Christopher Conkie

Date: 22:38:43 04/07/05

Go up one level in this thread


Hello Tor,

What would happen if you set the stream buffer using setbuf or setvbuf? Would
that help? It is just that I read this in Technet about Stream I/O....

These functions process data in different sizes and formats, from single
characters to large data structures. They also provide buffering, which can
improve performance. The default size of a stream buffer is 4K. These routines
affect only buffers created by the run-time library routines, and have no effect
on buffers created by the operating system.

If it were the buffers created by the operating system that were the problem, it
would explain why it works on Linux and not on xp.

I know that web servers have definable timeouts for running scripts and am just
trying to think on those kind of lines.

EOF would also occur if there was an error parsing the file but that does not in
turn explain the OS differences you mentioned (ie working on Linux and not xp).

Is it possible to obtain a solution by splitting up the file into smaller
pieces?

Just a few rambling thoughts. :-)

Hopefully not rambling up completely the wrong path.

Regards

Christopher




This page took 0.01 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.