[mercury-users] Sluggish XML parsing

Michael Day mikeday at corplink.com.au
Sun Dec 24 17:33:38 AEDT 2000


> if you want to find out if higher order code is the culprit you could
> compare with my mercury xml parser:
>
> ftp://ftp.dcs.shef.ac.uk/home/tomas/xml-0.5.zip
>
> please report your findings :-)

Hmm, well it compiles a lot faster and runs blisteringly quickly, but a
comparison would not really be valid as it does not appear to do any
checking as to whether a document is well formed.
For example, this:

	<foo>
	</bar>

Is successfully parsed as this:

	<bar>
	</bar>

Which is not correct.

Nonetheless, it's nice that compiling it with -O6 takes minutes rather
than hours - is this particular sluggishness due to all the introduced
preds involved with higher order code? Compiler dudes?

Michael

--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list