Feb 19, 2010 at 4:44 PM
Edited Feb 19, 2010 at 4:47 PM
> I do notice that the full txt file is read for every request.
No. It shouldn't. As stated in the documentation,
For the plain text map files, the key/value pairs are cached in memory for quick matching. IIRF loads new values automatically when the map file changes.
If the map file has been updated, then IIRF will re-read it. IIRF checks the timestamp on the map file for every request.
Once the map is read into memory, to determine if a match is made, IIRF compares the subject string to each string in the map, or until a match is found, via a call to the strcmp function in libc.
You can find documentation on the rnd map type at the link I gave above, or in the .chm file that's included in the IIRF download.