I'm guessing your kwicionary is rather constant. If so, you can build an index (word => file position) outside of the CGI script, and store it to disk. There must be algorithms out there to build index files which don't need to be completely loaded into memory, but I'm not familiar with them. On second thought, a database would be perfect to store the index.
The CGI script could
In reply to Re: searching for a keyword with context window
by ikegami
in thread searching for a keyword with context window
by fadingjava
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |