-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Fetching specific JSON causes massive memory leak #20352
Copy link
Copy link
Closed
Labels
BugContributorA React Native contributor.A React Native contributor.Issue: Author Provided ReproThis issue can be reproduced in Snack or an attached project.This issue can be reproduced in Snack or an attached project.JavaScriptPartnerPlatform: iOSiOS applications.iOS applications.Priority: MidResolution: LockedThis issue was locked by the bot.This issue was locked by the bot.🌐NetworkingRelated to a networking API.Related to a networking API.
Metadata
Metadata
Assignees
Labels
BugContributorA React Native contributor.A React Native contributor.Issue: Author Provided ReproThis issue can be reproduced in Snack or an attached project.This issue can be reproduced in Snack or an attached project.JavaScriptPartnerPlatform: iOSiOS applications.iOS applications.Priority: MidResolution: LockedThis issue was locked by the bot.This issue was locked by the bot.🌐NetworkingRelated to a networking API.Related to a networking API.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Environment
Description
Downloading this <1 KiB JSON file once a second, parsing the JSON, and appending the resultant JSON to an array, causes the demo app below to hit 500MiB of memory usage in less than 15 seconds. Each request permanently allocates ~35MiB of memory.
Reproducible Demo
I have created a repo to reproduce the issue.