[YANGTOOLS-759] yang-data-codec-gson: fix JSONCodecFactory caching Created: 15/Mar/17  Updated: 10/Apr/22  Resolved: 11/Apr/17

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Blocks
blocks YANGTOOLS-758 yang-data-codec-xml: reuse codecs acr... Resolved
blocks YANGTOOLS-766 yang-data-codec-gson: compressed inst... Resolved
External issue ID: 7996

 Description   

JSONCodecFactory as it is currently implemented suffers from couple of performance flaws, some of which come from how it is used by downstream, some from internal specifics.

Split the implementation into multiple classes based on their space/time trade-offs, so users can choose a factory for their use case.

Also fix the performance woes in the default (shared+lazy) implementation.



 Comments   
Comment by Robert Varga [ 24/Mar/17 ]

master: https://git.opendaylight.org/gerrit/53620
master: https://git.opendaylight.org/gerrit/53801

Generated at Wed Feb 07 20:54:14 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.