Ticket #1976 (closed defect: fixed)

Opened 6 years ago

Last modified 4 years ago

Optimize lookup of EPSG projection codes

Reported by: dmorissette Owned by: dmorissette
Priority: high Milestone: 5.4 release
Component: WMS Server Version: unspecified
Severity: normal Keywords: projections
Cc: warmerdam, jmckenna

Description (last modified by dmorissette) (diff)

A few weeks ago I was doing some benchmarks with MapServer 4.10 on a mapfile
with about 10 layers in it and replacing the 10 "init=epsg:xxxx" defns with
native PROJ.4 definitions made the WMS GetCapabilities requests go from 3
hits/seconds to 12 hits/seconds (4 times faster!).

Since EPSG codes are used a lot by all OGC services, optimizing the EPSG lookup
(or caching them at a minimum) is something that would be very valuable for all
OGC service users.

Change History

Changed 6 years ago by dmorissette

  • owner changed from mapserverbugs to dmorissette
  • milestone set to 5.0 release
Let's see if we can address this in 5.0

Changed 6 years ago by dmorissette

  • summary changed from Optimize parsing of EPSG projecion codes to Optimize lookup of EPSG projection codes

Changed 6 years ago by dmorissette

  • cc warmerda added
  • description modified (diff)

Changed 6 years ago by dmorissette

  • cc warmerdam added; warmerda removed

Changed 6 years ago by dmorissette

  • status changed from new to assigned

Ticket #1426 was marked as duplicate of this ticket.

Changed 6 years ago by dmorissette

I have started a thread discussing possible solutions on the PROJ list:  http://lists.maptools.org/pipermail/proj/2007-August/003002.html

Changed 6 years ago by hobu

This one isn't happening for 5.0, right?

Changed 6 years ago by dmorissette

Depending on the outcome of the discussion on the PROJ list the issue may be fixed in 5.0 with very little or no changes to the code, it may end up only being a documentation issue (e.g. use PROJ v x.y with threads option enabled) so I'll wait until the last minute before pusing this to 5.2.

Changed 6 years ago by dmorissette

  • milestone changed from 5.0 release to 5.2 release

Changed 5 years ago by jmckenna

  • cc jmckenna added

Changed 5 years ago by dmorissette

  • milestone changed from 5.2 release to 5.4 release

Changed 4 years ago by warmerdam

  • keywords projections added
  • status changed from assigned to closed
  • resolution set to fixed

I have added memory caching of init definitions in PROJ.4, primarily in:

 http://trac.osgeo.org/proj/changeset/1542

This should appear in the PROJ 4.7.0 release in the fairly near future I hope.

Note: See TracTickets for help on using tickets.