[Glade-devel] Why libxml2 and not GMarkupParser?



--Boundary-00=_ufwAAQVwqQALDRo
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Monday 12 January 2004 07:22, Olexiy Avramchenko wrote:

John (J5) Palmieri wrote:
I guess I would say the
best thing to do is try to integrate GMarkup as a compile time option
where others can go and benchmark the two approaches to see which is
best.

This is the best way to give it a try.

Attached then yet another patch against libglade-2.0.1 [*] that introduces a 
--without-libxml2 option for ./configure. 

The code has been re-arranged to be as little invasive as possible 
(introducing some inefficiencies due to the need to wrap the attributes 
arrays into the format used by libxml2's sax parser though).

I think it is worth mentioning that the core difference between using libxml2 
and GMarkupParser in glade-parser.c comes down to probably around 50-100 
lines of simple and straight-forward code now. Most of the patch deals with 
decompressing gzipped .glade files/buffers. Which means that either way no 
one is "betting the whole farm" on anything here  :-)

Given the lack of enthusiam here for my idea to use GMarkupParser instead, I 
am not sure whether it's a good idea to fold this stuff into the code tree, 
especially given that it's only been tested by me so far. But if anyone wants 
to play around with it, here it is.

Cheers
-Tim


[*] the patch also applies against libglade-2.3.x, with the exception of the 
configure.in stuff, which is easy enough to copy'n'paste into the 2.3.x 
configure.in file.


--Boundary-00=_ufwAAQVwqQALDRo
Content-Type: application/x-bzip2;
  name="libglade-2.0.1-optional-nolibxml2-2004-Jan-12.diff.bz2"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
        filename="libglade-2.0.1-optional-nolibxml2-2004-Jan-12.diff.bz2"

QlpoOTFBWSZTWedxlnwABxT/gH/90Ab//////+//+/////pgE1y3zvY0o8L2mjbtuO6vV5kaL28e
alSSCmqG853WqaxtDbTJNvTnMA0DAkSIJiEnp5JpoyaIY1TTYo9KbCJmkeo9RtMkHpNG1AAfqnlP
SDQgmEaApiAaZGUZD1NDQ0AAAGgAABoADTTRBKjygeoaAaAAPUAMTQAAAAAAA0Ak1EiCNNU9THqJ
p6T0hpkaGg0DQ0AANAaABo0AAcADQNANDQAADTENGmgA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FARfVVOQ8XzY00FwF9jXnEGsaPpaBXs2gFhJ8UmiMJF
6vgsPw7fISeawGCIXrasM2Mrlv9S4rxXxs5+csMQPOw51hSbUhh6YrOph3QaTUW4+kCVt+xpVGNN
SWZ2bYrOvIhEX49a4k8pKI5rfnka7jFl7pfPr3wfCluTPL1mCXZNEMRqQNvhfiYjzDQcFKRQUoKY
N+bpKD/4u5IpwoSHO4yz4A==

--Boundary-00=_ufwAAQVwqQALDRo--





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