Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite status persistency with Parcels #159

Open
pilhuhn opened this issue Sep 26, 2013 · 1 comment
Open

Rewrite status persistency with Parcels #159

pilhuhn opened this issue Sep 26, 2013 · 1 comment
Labels
Milestone

Comments

@pilhuhn
Copy link
Owner

pilhuhn commented Sep 26, 2013

Serialization on Android is slow and for persistence of Tweets, Zwitscher is serializing them by writing them to a ByteArrayOutputStream and persisting the result afterwards.

Parcels require more work, but are faster as they need no reflection unlike serialization.

@pilhuhn
Copy link
Owner Author

pilhuhn commented Sep 30, 2013

Actually that is not even true. Statuses are persisted as JSON string.
The serialization only happens when queueing.

It may make sense though to split a status into fields that are put into individual database columns and
to split out User objects and also RetweetedStatuses and (URL/Media)Entities

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant