Comments (2)
For reference, here are the figures for loading and storing on a 5s the 13184 state events of Matrix HQ (https://riot.im/develop/#/room/#matrix:matrix.org):
Loading (ms) | Storing (ms) |
---|---|
1000 | 2500 |
Loading is currently done with [NSKeyedUnarchiver unarchiveObjectWithFile:]
Storing with [NSKeyedArchiver archiveRootObject:toFile:]
from matrix-ios-sdk.
The AFNetworking JSON deserialiser is based on NSJSONSerialization which is a closed black box which converts a whole NSData object to an NSDictionary. We have no control during the parsing. NSJSONSerialization has no delegates. It does not send any notifications on incremental parsing. So we cannot get intermediate JSON strings :/
I gave a try to SBJson5 (http://www.sbjson.org/). It offers more control but it is much more slower.
Parsing the JSON of the an initial sync response gives:
\ | Parsing time (ms) |
---|---|
NSJSONSerialization | 614 |
SBJSON | 4979 |
from matrix-ios-sdk.
Related Issues (20)
- creating video call not initiated HOT 1
- Crash when saving read receipts
- Registration with captcha or email verification
- iOS Element App does not notify with sounds HOT 2
- build.sh script is outdated for version 0.27.2
- Crash when sending file with unrecognized extension HOT 1
- Look here, guys, I've got a tough problem, and I need your help ~ HOT 1
- Cocoapods out of date HOT 3
- Remove the libbase58 pod dependency HOT 3
- REQ: add support for Contact Key Verification HOT 1
- MXLastMessage `text` and `attributedText` are always nil HOT 1
- How to download the image
- Cannot listen events for MXUser
- https://github.com/viewvc/viewvc/
- https://github.com/matrix-org/matrix-ios-sdk
- Need Guidance on New Device Verification Steps and Best Practices for E2EE
- I want to mute audio call. audioMuted flag is not working.
- Session start error after deleting an application
- Failed to find any key to satisfy on group audio call
- Any plan to add a Privacy Manifest? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matrix-ios-sdk.