Geotoolkit

Recycle a limited amount of ImageWriter when writting an image mosaic

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 3.00, 3.01, 3.02, 3.03, 3.04
  • Fix Version/s: 3.04
  • Component/s: Coverage
  • Labels:
    None

Description

MosaicImageWriter writes the tiles in background threads, using as many threads than CPU. This speed up significantly the creation of an image mosaic. However one instance of ImageWriter is created for each thread. Worst, because many write operations are scheduled in advance, a lot of ImageWriters are created before they are actually needed.

This task improves the writting in two ways:

  • The main thread blocks when all background threads are busy writting tiles. At most one task is submitted in advanced; other tasks have to wait that at least one thread become available.
  • A pool of ImageWriter is used, so existing instances are recycled.

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    23/Sep/2009 13:25
    Updated:
    23/Sep/2009 13:26
    Resolved:
    23/Sep/2009 13:26

Time Tracking

Estimated:
6h
Original Estimate - 6 hours
Remaining:
0m
Remaining Estimate - 0 minutes
Logged:
6h
Time Spent - 6 hours