Memory leak: new TCGdex SDK instance created per card in fetch_card.py #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
In
fetch_card.pyline 81, a newTCGdexSDK instance is created for every single card:This function runs inside a
ThreadPoolExecutorwith 8 workers (line 122), potentially processing thousands of cards.Problems
Fix
Pass a shared SDK instance or use a thread-local pattern: