[
https://issues.apache.org/jira/browse/CAMEL-26388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18133985#comment-18133985
]
Claus Ibsen commented on CAMEL-26388:
-------------------------------------
Merged: https://github.com/apache/camel/pull/28647
> camel-util - URISupport.textBlockToSingleLine: fast path for a uri without
> line breaks
> --------------------------------------------------------------------------------------
>
> Key: CAMEL-26388
> URL: https://issues.apache.org/jira/browse/CAMEL-26388
> 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 #4 of CAMEL\-25132. Every CamelContext.getEndpoint\(String\) runs
> uri.lines\(\) with an AtomicBoolean, a StringJoiner and per\-line
> concatenation, even for direct:foo \(about 12% of allocation in a
> ProducerTemplate loop\). For a uri without \n or \r the result is exactly
> uri.trim\(\), so return that directly.
> _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)