JSON-java icon indicating copy to clipboard operation
JSON-java copied to clipboard

Why is JSONObject(int initialCapacity) protected and not public ?

Open omasseau opened this issue 2 years ago • 1 comments

Hello,

Is there any reason why JSONObject(int initialCapacity) is protected and not public ? When building a JSONObject from scratch it would be nice to be able to provide the initial capacity for improved performances.

omasseau avatar Oct 14 '22 10:10 omasseau

@omasseau how much of a performance improvement will this provide?

stleary avatar Oct 14 '22 16:10 stleary

Closed due to lack of activity

stleary avatar Sep 30 '23 17:09 stleary