mindee / mindee-api-python

Mindee API Helper Library for Python
https://mindee.com
MIT License
39 stars 5 forks source link

Loading + queuing on files is abnormally long on Windows machines #245

Open sebastianMindee opened 5 months ago

sebastianMindee commented 5 months ago

Prerequisites

Put an X between the brackets on this line if you have done all of the following:

Description

Loading files for asynchronous polling & sending

Steps to Reproduce

  1. Load document with:

    input_source = client.source_from_path(FILE_PATH)
    parsing_result = client.enqueue(product.GeneratedV1, input_source, endpoint=ENDPOINT)
  2. Time it.

Expected behavior:

Processing time under 300ms for small files (<1mb).

Actual behavior:

Processing time well over 2.5 seconds

Reproduces how often:

Happens with all tested files so far (JPEG images).

Versions

Most likely all SDK versions. Windows x64 python 3.12

Additional Information