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

Optimize format detection logic

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.3.2
    • None
    • None
    • None

      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

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

              Created:
              Updated:

                Version Package
                2.3.2