Release 2.7.0
2.7.0 (2023-02-12)
New fastWrites prop
2.7.0 adds a new prop to the MMKV configuration that changes the behaviour of set calls.
- When
fastWritesis set totrue, MMKV does not overwrite previous values when callingset. This is faster, but uses more memory. - When
fastWritesis set tofalse, MMKV deletes the previous value before callingset. This makes sure the storage size is always as small as possible, with the added performance cost of one delete call before setting.
Before this version, MMKV behaved as if fastWrites was set to true (i.e.; fast, but use more memory). Now after this PR, fastWrites is false by default, because users were complaining in #440 that the storage size grows too big.