[ https://issues.apache.org/jira/browse/JOHNZON-278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Romain Manni-Bucau resolved JOHNZON-278. ---------------------------------------- Fix Version/s: 1.2.1 Resolution: Fixed Thanks a lot Markus (again), applied. > Return constant instead of new instance of empty block / empty array > -------------------------------------------------------------------- > > Key: JOHNZON-278 > URL: https://issues.apache.org/jira/browse/JOHNZON-278 > Project: Johnzon > Issue Type: Improvement > Components: Core > Affects Versions: 1.2.0, 1.2.1 > Reporter: Markus Karg > Priority: Major > Fix For: 1.2.1 > > Time Spent: 2h 40m > Remaining Estimate: 0h > > Even in these days of modern Java, reducing memory consumption, GC stress and > memory fragmentation, are beneficial side aspects. > If makes no sense to create new *empty* instances of JsonArray and JsonObject > again and again. For this case, JSON-P provides special *constants*. > It makes sense to return these constants always. -- This message was sent by Atlassian Jira (v8.3.4#803005)