You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Sergey Evdokimov (JIRA)" <ji...@apache.org> on 2015/08/12 17:52:46 UTC

[jira] [Updated] (IGNITE-1223) Use Gson instead of net.sf.json-lib:json-lib:2.4

     [ https://issues.apache.org/jira/browse/IGNITE-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Evdokimov updated IGNITE-1223:
-------------------------------------
    Attachment: master_ae11e9b_ignite-1223.patch

Done. 'ignite-http-rest' uses Gson now. There was a problem: Gson uses field instead of getters/setters to extract data from object. According to Ignite code convention some field may have cutted name. That names was annotated @JsonName annotation with full name.

> Use Gson instead of net.sf.json-lib:json-lib:2.4
> ------------------------------------------------
>
>                 Key: IGNITE-1223
>                 URL: https://issues.apache.org/jira/browse/IGNITE-1223
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Sergey Evdokimov
>            Assignee: Sergey Evdokimov
>         Attachments: master_ae11e9b_ignite-1223.patch
>
>
> Gson faster then "net.sf.json-lib:json-lib:2.4" 4 times. (Serialization of GridRestCommand#NODE responce 20000 times take 1,45 seconds with Gson and 5,8 seconds with json-lib. Also json-lib cannot work with gridgain-style getters and setters.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)