[geotk] [JIRA] Created: (GEOTK-42) Recycle a limited amount of ImageWriter when writting an image mosaic

Martin Desruisseaux (JIRA) jira at geomatys.com
Wed Sep 23 07:26:45 EDT 2009


Recycle a limited amount of ImageWriter when writting an image mosaic
---------------------------------------------------------------------

                 Key: GEOTK-42
                 URL: http://jira.geotoolkit.org/browse/GEOTK-42
             Project: Geotoolkit
          Issue Type: Improvement
          Components: Coverage
    Affects Versions: 3.03, 3.02, 3.01, 3.00, 3.04
            Reporter: Martin Desruisseaux
            Assignee: Martin Desruisseaux
            Priority: Minor
             Fix For: 3.04


{{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.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.geotoolkit.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       


More information about the Geotoolkit mailing list