[Koha-bugs] [Bug 7170] Remove use of XML::Simple

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Nov 7 04:06:00 CET 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7170

--- Comment #2 from Ian Walls <ian.walls at bywatersolutions.com> 2011-11-07 03:06:00 UTC ---
My initial research has shown that a drop-in replacement for XML::Simple is
hard to find.  However, if we could parse the input as YAML instead of XML,
then we could use YAML::Syck to load the file and return the same data
structure.

I've copied the <config> block of koha-conf.xml to koha-conf.yaml, and written
a new subroutine to parse that, then modified C4::Context->new to detect the
file type and use either XML or YAML according to the KOHA_CONF value.

My VERY INITIAL tests indicate 2 orders of magnitude improvement in speed on
that portion of code; from hundreds of milliseconds to 1 or 2.  More research
is needed to confirm these findings, but they're encouraging.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the Koha-bugs mailing list