[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [computer-go] SGF parsers



Mark Boon wrote:
> There are several advantages to such an approach. First, the SGF parser
> really needs to be made only once and will then be universally useful.
> Second, once the XML definitions are agreed upon, the laziest solution to
> parse them is to use an existing XML library like Xerces to create the
> DOM-tree from XML. That way SGF can be used when space is an issue, as it's
> more compact, and XML can be used for other purposes.

Another thing you are missing is speed.  My SGF parser (also I admit
it is _extermely_ complicated) can crunch a 100 M file in some 5--6
seconds.  I seriously doubt any XML parser out there can come anywhere
close.

(In case you wonder, I don't know if anybody out there uses a 100 M
SGF file.  However, I know someone who regularly uses a 10 M SGF file
with 1 million nodes.)

Paul

_______________________________________________
computer-go mailing list
computer-go@xxxxxxxxxxxxxxxxx
http://www.computer-go.org/mailman/listinfo/computer-go/