Ticket #98 (closed enhancement: fixed)

Opened 13 years ago

Last modified 13 years ago

Add ability to toggle metadata collection

Reported by: curtis Owned by: melissa
Priority: major Milestone:
Component: bio-formats Severity:
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by curtis) (diff)

Right now, Bio-Formats always parses metadata during initialization and populates its internal metadata hashtable. In some cases, there may be a large number of objects added to the table that represent significant overhead. If we know that we will not need these objects, it would be nice to be able to skip the metadata parsing altogether for that data. In particular, in situations like LeicaReader using a collection of constituent TiffReader instances, it makes sense to parse the metadata only from the first TIFF, and disable metadata parsing for the others, to decrease overhead.

Once this feature exists, the "-nometa" command line flag for showinf should be updated to not only suppress metadata output, but toggle it off completely.

Change History

comment:1 Changed 13 years ago by curtis

  • Description modified (diff)

comment:2 Changed 13 years ago by curtis

  • Description modified (diff)

comment:3 Changed 13 years ago by melissa

API added in r2586; calling setMetadataCollected(false) on an IFormatReader disables metadata collection. If collection is disabled, calls to FormatReader.addMeta will return without modifying the metadata hashtable. This may not be sufficient, so I won't close the ticket just yet.

comment:4 Changed 13 years ago by melissa

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.