Hmmm, I would get rid of all the parsing overhead XML introduces. A simple-and-stupid way to implement this could be a Makefile (or similar logic) that generates a fast (non-SQL) database file from the XML master whenever it changes (its timestamp). Ideally, reading from the database file would not change its modification time (as an unwanted side-effect).
My very first idea was to use SQLite, but I think djb's CDB should be way faster. Of course, there is a CDB_File on CPAN, and for extra bonus points, it is capable of generating new CDB files.
Alexander
In reply to Re: Looking for suggestions for writing a module to look up translations in a 9 MB XML dictionary
by afoken
in thread Looking for suggestions for writing a module to look up translations in a 9 MB XML dictionary
by skangas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |