Uploaded image for project: 'Nuxeo Python Client'
  1. Nuxeo Python Client
  2. NXPY-227

Use a LRU cache for guess_mimetype()

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: NoVersionApplicable
    • Fix Version/s: None
    • Component/s: Core

      Description

      guess_mimetype() could make use of a LRU cache to improve speed on recurrent files.

      For instance, Nuxeo Drive will call the function for Direct Transfer uploads (since NXDRIVE-2677) and then when uploading the file the Python SDK will automatically call again guess_mimetype() on the same file.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: