Twitter Introduces Serial: an Open Source Library for Serialization Sony Xperia...

 
 
 
Twitter Introduces Serial: an Open Source Library for Serialization Sony Xperia...

 
xda-developers
Nov 8, 2017 9:00 PM • by Doug Lynch
Twitter Introduces Serial: an Open Source Library for Serialization

UI smoothness in Android is something that gets brought up from time to time as it can be really easy for the average user to notice what is commonly referred to as jank. This is quite often noticed when scrolling through a list of items and Twitter noticed that serializing and deserializing data both to and from the database using the standard Android Externalizable classes took up about 15% of the UI thread time. The team took some time to optimize this issue and today they've announced Serial — a new, open source library for serialization.

Twitter noticed they were running into four main pain points when dealing with the standard Android serialization libraries. This included the performance, the debuggability, the backwards compatibility, and the flexibility. With a view to solve these, the team looked into other Java serialization libraries like Kryo and Flatbuffer; and while these libraries do attempt to solve some of these overlapping problems, they were unable to find any libraries that would fit Twitter's needs effectively on Android.

So they began working on their own solution and this has resulted in the new open source library for serialization called Serial. As mentioned, the first issue they wanted to solve had to do with performance and Twitter engineers pinpointed reflection as the culprit here. Externalizable allows the framework to identify which object to instantiate with the serialized data, and where to find that class in the app package structure, but it is a time consuming process. To make this more efficient, Serial allows the developer to define a Serializer for each object that needs to be serialized.

Twitter Serial

Debuggability was another issue they wanted to solve and they did this by enabling Serial to provide an exception result with exact unexpected value along with a dump of the structure of the serialized data to allow the developer to see where in the object the issue occurred. They were able to make it backwards compatible so that if a developer wanted to make a change to a model object, then it would not break serialization or require a database clean. To get around this, they added versioning so that developers could make changes quickly and without additional cost.

Lastly, they wanted Serial to be flexible and easy to use so that it wouldn't require significant changes to the existing model structure. The team was able to do this by defining Serializer as a standalone class that can be statically called to serialize an object. So that almost any model object can be serialized using this framework, including existing Android objects or objects from other imported libraries.

Be sure to read through the full blog post linked below to learn more about the technical details of Serial.


Source: Twitter Blog




Android Advices
Nov 3, 2017 4:50 PM • by Pavan Kumar B.C
Sony Xperia XZ1 gets $110 price cut in US, now available for $590

Sony's Xperia XZ1 gets another price cut in the US and this flagship device is currently available for $589 on Amazon which is $110 lessor than its previous price. Currently, the Blue color variant is priced at $589 while the other options are available for $599.99. There is no information on how long the price cut will be implemented or till when the offer is valid so the users need to act soon to get their hands on the Xperia XZ1 for a discounted price.

Coming to the device, the Xperia XZ1 was launched a few weeks back and came with a 5.2-inch IPS LCD display with 1080 x 1920 pixels resolutions giving a pixel density of 424ppi with the latest Corning Gorilla Glass 5 protection on top. Moreover, under the hood, there is the Qualcomm Snapdragon 835 SoC Octa-core processor coupled with 4GB of RAM and Adreno 540 GPU. Sony is known for making good camera smartphones and this device comes with a 19MP main sensor with EIS, F/2.0 aperture size, laser autofocus and LED flash.

It also comes with features like touch focus, face/smile detection, panorama, HDR and few other sensors. It is also capable of capturing 2160p videos at 30fps and it will be accompanied with a 13MP camera on the front for video calls and selfies which also comes with EIS and 1/3" sensor. There is a fingerprint sensor on the side to enhance the security levels and has sensors like proximity, parameter, compass and few other.

There is a non-removable Li-Ion 2700 mAh battery on the back and comes with quick charge 3.0 for fast charging. The handset is available in Black, Warm Silver, Venus Pink, and Moonlit Blue color variants. The onboard storage is limited to 64GB which can be extended up to 256GB via microSD card slot. Are you planning to get this device on discounted price? Comment in the section below and stay tuned for more news and updates.

Source




 
 

This email has been sent by Froze ONE (isnanmm0@gmail.com). It is the potion result of 'Tech: Topic watch' from the dashboard 'Personal Dashboard', tab 'Tech > Android'. Unsubscribe

 
 
 

Subscribe to receive free email updates:

0 Response to "Twitter Introduces Serial: an Open Source Library for Serialization Sony Xperia..."

Post a Comment