[mapserver-dev] PJ pool

Paul Ramsey pramsey at cleverelephant.ca
Wed Nov 5 01:05:47 EST 2008


So, I read over mappool.c while watching the election coverage and it
looks pretty convincing to me... I'd like to have one for projections.
 I feel silly just essentially cloning it, but it works, and a
slightly simpler version would serve the purpose.  Seems like the main
issues are thread safety, since these things will be global.

P.

On Tue, Nov 4, 2008 at 8:51 PM, Paul Ramsey <pramsey at cleverelephant.ca> wrote:
>
> I think the expedient answer is an in-memory cache of PJ structs,
> filled up on an "as needed basis".
>
> I think of it like this:
>
> You have a map file with 10 layers. Odds are, all/most of your data is
> going to be in the same SRS. We cache the first object in memory, and
> the rest use it. Instant 10x performance boost. Add in FCGI and the
> boost goes to infinity (or something). It's something that is
> self-contained in Mapserver and will work right away, on old versions
> of Proj.
>
> Paul
>


More information about the mapserver-dev mailing list