<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Jay,<br>
<br>
On 9/23/2014 6:04 PM, Jay McCarthy wrote:<br>
</div>
<blockquote
cite="mid:CAJYbDa=uR26UAdfPgg5RzLo3HJv_rWosXXiCx+Rp9vbxPEbe9Q@mail.gmail.com"
type="cite">
<pre wrap=""><font color="#006600">On Tue, Sep 23, 2014 at 4:42 PM, George Neuner <a class="moz-txt-link-rfc2396E" href="mailto:gneuner2@comcast.net"><gneuner2@comcast.net></a> wrote:
>
> 1) Is there any way to speed up initial [module] servlet loading?
This is why I recommend that new users use serve/servlet, which is
much faster because it does not use namespaces or live loading.</font></pre>
</blockquote>
<br>
That's an option for a finished application ... if a web application
ever really can <br>
be said to be finished ... but it's tough when you're developing. <br>
<br>
I guess the question is "where is all the time spent"? Loading
required modules<br>
from the library I suppose?<br>
<br>
Not really knowing much about Racket's internals he naively asks:
Could a server<br>
pre-load the commonly used webserver modules and make them available<br>
to new module servlets, or does the custodian implementation make
doing that <br>
difficult/impossible?<br>
<br>
<blockquote
cite="mid:CAJYbDa=uR26UAdfPgg5RzLo3HJv_rWosXXiCx+Rp9vbxPEbe9Q@mail.gmail.com"
type="cite">
<pre wrap=""><font color="#006600">> 2) Debugging module servlets is a pain due to having to stop/restart
> the server. Is there some clever way to force the server to unload a
> particular servlet but keep running?
Doing this pretty much requires not following my advice in question 1,
but the default server (used by the command line tool) allows you to
go to "/conf/refresh-servlets" and unload/reload all the servlet code.</font></pre>
</blockquote>
<br>
That might help. Does unloading & reloading affect a stateless
servlet that isn't<br>
been changed? More to the point, can you stop/restart the server
and continue <br>
a stateless servlet?<br>
<br>
My application so far is based on stateful servlets and AJAX ...
stateful mainly because<br>
it's easier for me to understand. Currently there is little use of
continuations, but<br>
some planned functionality will use them extensively and it
certainly would help if<br>
debugging didn't always mean starting over setting up conditions in
the application.<br>
<br>
George<br>
</body>
</html>