in reply to Looking for suggestions for writing a module to look up translations in a 9 MB XML dictionary
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Looking for suggestions for writing a module to look up translations in a 9 MB XML dictionary
by rastoboy (Monk) on Nov 05, 2009 at 09:42 UTC | |
|
Re^2: Looking for suggestions for writing a module to look up translations in a 9 MB XML dictionary
by skangas (Novice) on Nov 05, 2009 at 21:06 UTC |