[Simple-support] any performance tricks?
Brought to you by:
niallg
|
From: Jim S. <ji...@fu...> - 2009-03-02 19:26:15
|
Hi, I'm evaluating Simple along with some other tools that will serialize data for purposes of data transfer across a network. I much prefer the annotations-based way that Simple lets me prepare data for serialization to the other tool I'm evaluating (Google protobuf), but the performance is becoming a determining factor. For example, a sample data structure which takes 1.53ms to encode with Simple only takes 0.048ms to encode with protobuf. I'm just doing a very simple standard annotation markup with @Attribute and @Element (the outer structure has a dozen fields and a list of two inner structures, each having about a half-dozen fields). Then I just use persister.write to serialize. I'm guessing maybe the reflection is taking a lot of time? Not sure. But are there any known performance tips/tricks to know about with Simple? Thanks, Jim CONFIDENTIAL This document and attachments contain information from Fusion-io, Inc. which is confidential and/or legally privileged. The information is intended only for the use of the individual or entity named on this transmission. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or taking of any action in reliance on the contents of this emailed information is strictly prohibited, and that the documents should be returned to Fusion-io, Inc. immediately. In this regard, if you have received this email in error, please notify us by return email immediately. |