You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Romain Manni-Bucau (Jira)" <ji...@apache.org> on 2024/04/01 18:39:00 UTC

[jira] [Updated] (JOHNZON-403) Improve performance when parsing large Strings

     [ https://issues.apache.org/jira/browse/JOHNZON-403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Romain Manni-Bucau updated JOHNZON-403:
---------------------------------------
    Fix Version/s: 2.0.1
                       (was: 1.2.22)
                       (was: 2.1.0)

> 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
>            Assignee: Markus Jung
>            Priority: Minor
>             Fix For: 2.0.1
>
>          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)