Opened 13 years ago

Closed 13 years ago

#3744 closed enhancement (fixed)

Avoid default outputformat initialization

Reported by: tbonfort Owned by: sdlime
Priority: normal Milestone: 6.0 release
Component: MapServer C Library Version: unspecified
Severity: normal Keywords:
Cc: warmerdam, sdlime, dmorissette

Description

We currently initialize all the default outputformats each time the mapfile is parsed, which causes some overhead knowing that only one of them will be used.

The full list of available outputformats is only necessary when creating capabilities documents.

This ticket tracks the following modification:

  • remove call to creation of all default outpuformats in postMapOutputFormatSetup
  • add function to create a default outputformat only if it is requested
  • add calls to creation of all default outputformats before capabilities documents are created.

After discussion with Frank, we have not identified other side-effects, do you?

Change History (2)

comment:1 by sdlime, 13 years ago

Not off the top of my head, solution sounds reasonable...

Steve

comment:2 by warmerdam, 13 years ago

Resolution: fixed
Status: newclosed

Implemented during the sprint week by Thomas.

Note: See TracTickets for help on using tickets.