[ 
https://issues.apache.org/jira/browse/SHINDIG-451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614105#action_12614105
 ] 

Ian Boston commented on SHINDIG-451:
------------------------------------

Some comparative timing tests, Output is SpecialPerson -> JSON String input is 
the same JSON -> SpecialPerson (see the unit tests for def of special person)

Unfortunately the JSON String -> SpecialPerson bean throws an exception for the 
ORG JSON Lib based converter, (my SpecialPerson is fully populated).  

The tests are over 10,000 operations, random out, but static in, showing about 
60% of the time for the SF JSON Lib based approach. I will try and get 
something for GC activity soon, but this tends to be a bit hit and miss in a VM 
just running a test, as it really depends on the dwell time in Eden in real 
life. 

Its probably going to be worth spending some time in a profiler just to check 
that there are no stupid mistakes on my part.

INFO SF JSON Lib Output 0.4024 ms/conversion  [2008-07-16 22:04:10,294] 
(JsonConverterPerformanceTest.java:128) 
INFO SF JSON Lib Input 1.3388 ms/conversion  [2008-07-16 22:04:23,820] 
(JsonConverterPerformanceTest.java:141) 
INFO ORG JSON Lib Output 0.6292 ms/conversion  [2008-07-16 22:04:30,209] 
(JsonConverterPerformanceTest.java:155) 

Will update the patch soon.



> JSON Serialization using net.sf.json-lib
> ----------------------------------------
>
>                 Key: SHINDIG-451
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-451
>             Project: Shindig
>          Issue Type: Improvement
>          Components: OpenSocial  feature (Javascript), RESTful API (Java)
>            Reporter: Ian Boston
>         Attachments: SHINDIG-451.patch
>
>
> Progress on a patch to use json-lib to perform serialization of the inbound 
> and outbound json messages, at the moment it re-uses the rhino from Shindig 
> 412, but only in the tests to give finer grain control in the test cases. The 
> Enum handling in json-lib is neat :).
> The unit tests that are not currently working are disabled with a Xtest, but 
> Person and activity with some depth in the tree are working.
> Will attache the patch in a moment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to