Opened 13 years ago
Last modified 12 years ago
#4018 assigned enhancement
don't reparse the same mapfile over and over again for fastcgi
Reported by: | tbonfort | Owned by: | tbonfort |
---|---|---|---|
Priority: | normal | Milestone: | 6.2 release |
Component: | MapServer FastCGI | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
the given map= mapfile parameter is parsed at each request in the fastcgi mapserv.c
we can squeeze a bit more performance out if we can keep the parsed mapfile in memory, and use a copy of it instead of reparsing it at each request.
The following points should be taken into account when implementing:
- the behavior should only be active for fastcgi requests
- a user should be able to disable this for a given mapfile by setting a CONFIG option or an environment variable
- the original mapfile's modification time should be checked to see if the in-memory copy is stale or not
Note:
See TracTickets
for help on using tickets.
initial patch for mapserv.c:
mapserv.c