Question: Lisp CGI that loads big hash only once
[email protected] Wed, 12 Apr 2006 16:09:11 +0200
| Newsgroups | gmane.lisp.web |
|---|---|
| Message-ID | <[email protected]> |
Hallo, I have written a parser for French in clisp. Now I would like to publish it ony my website http://rso.mine.nu. But I have a big problem with the dictionary which is a hash with +122000 entries all added in the form of: (setf(gethash "complaisance" *dict*)'((NOM "complaisance" f s ((NIL )) 10.66))) Now what I want to do, is load the dict.lsp once when I start the parser. In all other runs when somebody starts the lisp cgi, the cgi script can use the variable *dict* too. I am using the cgi-utils [1]. The software should run on a ubuntu apache2 and a freebsd 5.3 apache2 server. I would like to avoid a database because of the installation and connection difficulties. I would be very happy about an idea about how to load a variable once and let all other clisp cgi scripts use this variable afterwards. Thank you very much Best regards Richard Socher [1] http://www.cliki.net/lisp-cgi-utils