I've created a perl script automatically based on an ini file (we want to replace the ini file holding a number of rules by regular expressions in a perl script). The ini file is rather long, and the generated perl code is 22000 (approximate) lines long, holding about 8370 regex's. On my 1 GHz Pentium processor with 256 MB ram, it takes
about 90 seconds to parse this file...(it is called from within a C++ program, but once it is parsed, the function call itself takes no time whatsoever) 90 seconds is (much much much) too long. Is there any possibility to save a parsed file (it never changes) in some format so that when it is needed (and loaded at program startup),it should not be parsed anymore, and thus load faster?
Thx already,
Wim