What are the limitations of AsyncStorage, and how does it compare to modern alternatives…
- User
What are the limitations of AsyncStorage, and how does it compare to modern alternatives like MMKV?
Assistant
Limitations of AsyncStorage
• Only strings: every value must be JSON-stringified and parsed.
• Unencrypted: data is stored in plain text.
• Synchronous-looking API but still runs on a single JS thread → noticeable jank when you read/write many keys.
• No indexing or querying; every lookup is a full key scan.
• 6 MB total limit on Android (can be raised) and no hard limit on iOS, but performance degrades quickly above a few MB. • No built-in eviction or TTL; you manage cleanup yourself. • No multi-process safety; race conditions if native modules or other JS contexts touch the same file. • Deprecated from core; you must install and link the community package.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.