[
https://issues.apache.org/jira/browse/JOHNZON-403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Markus Jung resolved JOHNZON-403.
---------------------------------
Resolution: Fixed
> Improve performance when parsing large Strings
> ----------------------------------------------
>
> Key: JOHNZON-403
> URL: https://issues.apache.org/jira/browse/JOHNZON-403
> Project: Johnzon
> Issue Type: Improvement
> Components: Core
> Reporter: Markus Jung
> Priority: Minor
> Fix For: 2.1.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> when a string larger than the value buffer size is encountered the buffer
> gets resized (recreated and existing content is copied to a new, larger
> buffer)
> This is obviously a quite expensive thing to do, we should instead just keep
> track of existing (already full) buffers and create new ones as we need to
> See https://lists.apache.org/thread/h9wj9vb8p729xyy7qzj6t1cbvdrv2nm4 for
> romains initial idea
--
This message was sent by Atlassian Jira
(v8.20.10#820010)