[josm-dev] JOSM Server
Dirk Stöcker
openstreetmap at dstoecker.de
Mon Mar 18 17:39:58 UTC 2013
On Mon, 18 Mar 2013, Simon Legner wrote:
> Concerning these half-static-half-dynamic files, I guess there's room
> for improvement:
>
> $ time curl --head josm.openstreetmap.de/maps
> HTTP/1.1 200 OK
> Date: Mon, 18 Mar 2013 17:08:23 GMT
> Server: Apache/2.2.22 (Ubuntu)
> Content-Length: 724464
> Set-Cookie: trac_session=603f076682dea5716e375da9; expires=Sun,
> 16-Jun-2013 17:08:24 GMT; httponly; Path=/
> Vary: Accept-Encoding
> Content-Type: text/plain;charset=utf-8
>
> real 0m1.632s
> user 0m0.007s
> sys 0m0.003s
>
>
> This is over one second for shipping the header of an XML file which is
> updated every once in a while [1].
>
> What about re-generating this file on modification and shipping as fast
> as possible (using Apache directly, Nginx or Varsnish). Maybe, having a
> subdomain for static content might be worth a try (getting rid of
> cookies, sessions etc.).
Actually while I wrote that text I thought that maybe "/maps" actually is
a point for improvement and could be delivered static :-)
Thought when I change that, I think about splitting that large page
into smaller subpages, as editing the page also got a demanding task
today. OTOH that makes stuff more complicated - will have to think about a
useful solution.
And currently there is no time for that. But it is a know issue. And
although "/maps" takes long, there are bigger performance killers.
Ciao
--
http://www.dstoecker.eu/ (PGP key available)
More information about the josm-dev
mailing list