[ 
https://issues.apache.org/jira/browse/SOLR-18315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18153658#comment-18153658
 ] 

ASF subversion and git services commented on SOLR-18315:
--------------------------------------------------------

Commit f9b9fce3b8e4603578f5ce0a0326f6b2b59e4a33 in solr's branch 
refs/heads/main from Pierre Salagnac
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=f9b9fce3b8e ]

SOLR-18315: Optimize UTF conversions by using standard Java APIs (#4653)

This replaces class ByteUtils by Java API calls, mostly String constructor and 
getBytes() method when doing short-length byte[] <-> String conversions, or 
using CharsetEncoder for longer data.

Co-authored-by: David Smiley <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

> Replace CPU intensive UTF conversion tool by JVM calls
> ------------------------------------------------------
>
>                 Key: SOLR-18315
>                 URL: https://issues.apache.org/jira/browse/SOLR-18315
>             Project: Solr
>          Issue Type: Improvement
>          Components: SolrJ
>    Affects Versions: 10.0
>            Reporter: Pierre Salagnac
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> When sending updates, I noticed the code that converts Java strings (UTF16) 
> into UTF8 for {{JavaBinCodec}} is a CPU hotspot.
> This may be either in ingesting clients or in Solr nodes when forwarding data.
> All the code for UTF conversion in class {{ByteUtils}} is very CPU intensive. 
> The JVM provides methods for UTF conversion that are intrinsic candidates and 
> will be much more efficient, both in term of CPU and memory consumption.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to