Re: Question: Lisp CGI that loads big hash only once
Tim Lavoie <[email protected]> Wed, 12 Apr 2006 10:38:11 -0500
| Newsgroups | gmane.lisp.web |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Apr 12, 2006 at 05:14:05PM +0200, [email protected] wrote: > > Is your dictionary data static or will it be changed during runtime? > Following your description, I suppose it is static. Why not make it part > of your dumped Lisp image for the CGIs (you _are_ running from a dumped > image instead of starting clisp and the loading fasls, right?)? > > Just create your running image, load the dictionary, dump the image and > run your CGIs from that dumped image. I've done something mostly similar, but didn't want to create the variable manually. Instead, I took the function which processed a pile of static text (running each time), and replaced it with a macro which did it once at compile time. The end result is the same, just used a little differently. Cheers, Tim