[ https://issues.apache.org/jira/browse/SLING-7941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16623778#comment-16623778 ]
Simone Tripodi commented on SLING-7941: --------------------------------------- I thought twice on _parsing_ the JSON with streaming APIs... while it would be more performant, reading the current codebase I realised the pre-analysis on the parsed JSON model makes the built {{Feature}} instance more consistent. OTOH, no reason to build an intermediate JSON model when serializing, streaming APIs are more performant here. > Use streaming APIs to serialize a Feature to the related JSON representation > ---------------------------------------------------------------------------- > > Key: SLING-7941 > URL: https://issues.apache.org/jira/browse/SLING-7941 > Project: Sling > Issue Type: Improvement > Components: Feature Model > Affects Versions: Feature Model IO 0.1.4 > Reporter: Simone Tripodi > Assignee: David Bosschaert > Priority: Major > > We can avoid the unnecessary intermediate JSON objects creation by replacing > current usage with {{javax.json.JsonGenerator}} APIs, when serializing a > {{Feature}} to the related JSON representation. > Pull request is coming, tests keep working as before. -- This message was sent by Atlassian JIRA (v7.6.3#76005)