Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-1809

Optimize format detection logic

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.2
    • Component/s: None
    • Labels:
      None

      Description

      Picard currently always tries to guess the file format based on file content. This is very IO expensive and in many cases not needed.

      Change the logic to:

      • Try guessing the format by file extension first
      • If no extension or no matching file extension is available, guess by file content
      • If format was guessed by extension and loading the file with mutagen fails with an exception, retry with guessing by file content. Retry loading if the newly guessed format is different from the format guessed by extension.

      See discussion at PICARD-975

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gabrielcarvfer Gabriel Ferreira
              Reporter:
              outsidecontext Philipp Wolfer
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Packages

                  Version Package
                  2.3.2