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

Claus Ibsen resolved CAMEL-26390.
---------------------------------
    Resolution: Fixed

> camel-core - IOConverter: convert an InputStream to String without the 
> BufferedReader/StringBuilder chain
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-26390
>                 URL: https://issues.apache.org/jira/browse/CAMEL-26390
>             Project: Camel
>          Issue Type: Sub-task
>          Components: camel-core
>            Reporter: Adriano Machado
>            Assignee: Adriano Machado
>            Priority: Major
>             Fix For: 4.24.0
>
>
> Tier 1 item #5 of CAMEL\-25132. IOConverter.toString\(InputStream, Exchange\) 
> goes through a BufferedReader, an InputStreamReader and a StringBuilder: 1 KB 
> body costs 947 ns and 29,160 B, versus 50 ns and 2,104 B for new 
> String\(in.readAllBytes\(\), charset\). InputStreamCache takes the same path, 
> so every String view of a stream body pays this.
> _Claude Code on behalf of Adriano Machado \(@ammachado\)_
> _This was generated by an AI agent and may contain inaccuracies. Please 
> verify before relying on it._



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to