1
Vote

Simple XML Persister should be reused to improve performance.

description

Presently, SImple XML Persister objects are being created for each occurrence of serialization. To improve performance, a single Persister instance should be reused.

See:
http://stackoverflow.com/a/6208983/589215

comments

HolySamosa wrote May 1, 2014 at 10:04 PM

For my app, I've modified the RequestTemplate to use and expose a Singleton Persister. I don't have any benchmarks, but performance in my nascent app is noticeably improved.

Additionally, please consider an implementation that will make the Persister instance publicly accessible to application classes that may want to Serialize Things, e.g. serialize as arguments for Intents.

Thanks!