|Syntactic Confectionery Delight|
I want to know if i am doing things correctly and is XML::Compile really slow?
You appear to be doing things correctly ... if all the modules do what you want with the code you included
And yes, XML::Compile is probably that slow :) OTOH it does more than the other modules (and does it in perl code), so the slowness isn't unexpected
As the results have to be displayed to browser performance is a big issue.
Blah blah blah ... "loading data" spin cursors were invented for a reason :D
My advice (that I'm advising you with) is to try XML::Rules its XML::Simple on steriods :)
Also, profile your code (nytprof) to identify other bottlenecks :)
Also try XML::Hash::XS -- its libxml2+xs -- should be as fast as you can possibly get