Skip to content

Proposal: Remove in-memory cache for ParseFile #118

Closed
@wangmengyan95

Description

@wangmengyan95

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:

  1. Allowing uploading and downloading files that large than 10MB(current limitation)
  2. 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
    test
    Without in-memory cache
    test

Download
With in-memory cache
test
Without in-memory cache
test

Cons:

  1. Decrease performance since we use in-disk cache instead of in-memory cache

Please leave your suggestions and feedbacks.
Check PR #116 for details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions