• myhloli's avatar
    perf(pdf_extract_kit): conditional memory cleanup based on GPU capacity · fb9949c4
    myhloli authored
    - Introduce a conditional memory cleanup step in the PDF extraction process
    - Assess available GPU memory before deciding to perform memory cleanup- Log the time taken for garbage collection when it occurs
    - This optimization helps to balance performance and resource utilization
    fb9949c4
pdf_extract_kit.py 18.5 KB