You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for creating and maintaining this great library!
I’m using Pica to resize images uploaded by users in my application. Currently, I’m creating a new instance of Pica for every uploaded image, as shown below:
Recently, we noticed a memory spike in our application during high-frequency uploads. I suspect it might be related to creating a new Pica instance for each upload.
My questions are:
Could creating multiple Pica instances cause memory issues or inefficiencies in this scenario?
Would it be better to move the Pica instance outside the function and reuse it globally?
For context:
The application handles multiple concurrent uploads.
Performance and memory optimization are priorities.
I’d appreciate any guidance or recommendations for best practices when using Pica in this way.
Thank you for your help!
The text was updated successfully, but these errors were encountered:
Hi,
Thank you for creating and maintaining this great library!
I’m using Pica to resize images uploaded by users in my application. Currently, I’m creating a new instance of Pica for every uploaded image, as shown below:
Recently, we noticed a memory spike in our application during high-frequency uploads. I suspect it might be related to creating a new Pica instance for each upload.
My questions are:
Could creating multiple Pica instances cause memory issues or inefficiencies in this scenario?
Would it be better to move the Pica instance outside the function and reuse it globally?
For context:
The application handles multiple concurrent uploads.
Performance and memory optimization are priorities.
I’d appreciate any guidance or recommendations for best practices when using Pica in this way.
Thank you for your help!
The text was updated successfully, but these errors were encountered: