johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [johnzon] mkarg opened a new pull request #46: Enhancement [JOHNZON-278] Return constant instead of new instance of empty block / empty array
Date Sat, 21 Sep 2019 16:00:53 GMT
mkarg opened a new pull request #46: Enhancement [JOHNZON-278] Return constant instead of new
instance of empty block / empty array
URL: https://github.com/apache/johnzon/pull/46
 
 
   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 is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message