[plt-scheme] web-server and make-servlet-namespace

From: Dave Gurnell (d.j.gurnell at gmail.com)
Date: Mon Oct 29 12:46:36 EDT 2007

Dear PLTers,

I've been playing with the #:make-servlet-namespace keyword on the  
servlet dispatcher to see if I can get my web-server startup script  
to tell my (single) servlet which database to connect to (plus a few  
other configuration options). Everything is working fine, but I am  
concerned about memory efficiency.

I'm adding a fair chunk of code to the servlet namespace. It  
shouldn't make a difference in terms of the behaviour of my  
application as I only have one servlet. That said, I don't really  
know how modules and namespaces and servlet loading work behind the  
scenes. Am I impacting the memory efficiency of my web-server  
installation by doing this? If so, am I impacting it positively or  
negatively? Should I refactor things so I only include a couple of  
very small modules in the namespace, or can I be blazé about it?

Many thanks,

-- Dave

Posted on the users mailing list.