Closed
Description
Right now we keep a in-memory cache for ParseFile
. Doing this will increase ParseFile
performance in some cases, but it consumes too much memory. This not only downgrades the whole app's performance in some cases but also prevents us from allowing developers to upload/download file that large than 10 MB. After careful consideration and our recent changes to ParseFile
related classes (ParseFileController
#73 , ParseHttpBody
#70 and ParseFile
#116). We propose to remove the in-memory cache for ParseFile
.
Pros:
- Allowing uploading and downloading files that large than 10MB(current limitation)
- Much less memory usage
We do an experiment with uploading and downloading 20 1MB ParseFile, see the memory consumption result
Upload
With in-memory cache
Without in-memory cache
Download
With in-memory cache
Without in-memory cache
Cons:
- Decrease performance since we use in-disk cache instead of in-memory cache
Please leave your suggestions and feedbacks.
Check PR #116 for details.