|
|
|
|
|
by tomovo
2283 days ago
|
|
In the iOS implementation, a new dispatch queue is created on each 'set' or 'get' call, from which it switches to the main queue to call MMKV, wrapped in a try/catch block. Inside the MMKV library, a NSData object is created, another class is used to write a single "int" value to it, then the data object is used as the "raw" value for the given key. I haven't looked any futher but already this seems like a lot of work to set a number in memory. Is there any reason for this? |
|
The second thing about numbers is that its just in case you needed it for something, it is there but there are other ways to set the data too.