On Sat, 17 Jul 2010, jaayer wrote:
---- On Fri, 16 Jul 2010 12:25:54 -0700 Levente Uzonyi wrote ----
(Btw the idea that XMLElement >> #tag is returning a symbol and the
#tags*[dD]o: methods are expecting a symbol for tag is a very bad idea. It
degrades performance.)
And where did the XML-Parser go from Pharo?
XMLSupport has completely string-based for a few months now. Expecting or
supplying symbols will probably still work in Squeak and Pharo as Symbol is a
subclass of string and #test = ' test' evaluates to true, but this is not
portable and, as you pointed out, results in a degradation of performance.
I see. Lots of things changed this year.
There were no string-symbol comparison in the code I checked. The parser
converted all tagnames to symbols and the queries expected symbol
arguments, so symbols were compared with symbols. The problem with this
approach is that the symbol table is spammed with all the tags found in
the xml document and parsing is slower. The queries are faster of course
(if no namespaces are involved).
Btw is the package ment to be cross-dialect?
Levente
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project