<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
Hi Daniel,
<div><br>
</div>
<div>Thanks for sharing. We have made progress optimizing the rearrange/selectFrom operations for UTF-8 related uses cases. The improvements were integrated into JDK release 24 [0].</div>
<div>
<div>Further optimizations are in flight for slice operations with constant inputs [1], which I believe can simplify the referenced code and may further boost performance, but we need to verify.</div>
</div>
<div><br>
</div>
<div>Charlie, what version of the JDK are you using?</div>
<div><br>
</div>
<div>Paul.</div>
<div><br>
</div>
<div>[0] https://openjdk.org/jeps/489<br>
<div>[1] <a href="https://github.com/openjdk/jdk/pull/24104">https://github.com/openjdk/jdk/pull/24104</a></div>
<div><br>
<blockquote type="cite">
<div>On Jul 16, 2025, at 10:46 AM, Daniel Lemire <daniel@lemire.me> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<title></title>
<div>
<div>Good day Charles,</div>
<div><br>
</div>
<div>The following link might be relevant :</div>
<div><br>
</div>
<div><a href="https://github.com/simdjson/simdjson-java">https://github.com/simdjson/simdjson-java</a><br>
</div>
<div><br>
</div>
<div>- Daniel</div>
<div><br>
</div>
<blockquote type="cite" id="qt" style="">
<div dir="ltr">
<div>After seeing similar work done for the C version of the Ruby json standard library, I suggested to the author that we could do the same for JRuby using the Vector API. So he went and did it!</div>
<div><br>
</div>
<div><a href="https://github.com/ruby/json/pull/824">https://github.com/ruby/json/pull/824</a></div>
<div><br>
</div>
<div>The results are somewhat mixed; performance of some cases is faster and other cases is slower. We would love to get input from anyone on this list interested in seeing another real-world use case for the Vector API.</div>
<div><br>
</div>
<div>I'm hopeful we can pump up these numbers with some additional tweaking in JRuby and json.</div>
<div><br>
</div>
<div>
<div dir="ltr" class="qt-gmail_signature">
<div dir="ltr">
<div><b>Charles Oliver Nutter</b></div>
<div><i>Architect and Technologist</i></div>
<div>Headius Enterprises</div>
<div><a href="https://www.headius.com/" target="_blank">https://www.headius.com</a></div>
<div>
<div><a href="mailto:headius@headius.com" target="_blank">headius@headius.com</a></div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</body>
</html>