dependabot[bot] opened a new pull request, #16780: URL: https://github.com/apache/camel/pull/16780
Bumps [com.alibaba:fastjson](https://github.com/alibaba/fastjson2) from 2.0.53 to 2.0.54. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/alibaba/fastjson2/releases">com.alibaba:fastjson's releases</a>.</em></p> <blockquote> <h2>fastjson 2.0.54版本发布,性能进一步提升</h2> <p>这又是一个性能优化Bug修复的版本更新版本,大家按需升级。</p> <h1>1. 性能优化</h1> <p>这个版本的性能优化包括:</p> <h2>1.1 使用SWAR(SIMD Within A Register)技巧来优化序列化字符串的性能</h2> <p>序列化时,写字符串检测是否存在特别字符是一个性能关键点,这个版本使用SWAR(SIMD Within A Register)的技巧来做快速检测。如下</p> <pre lang="java"><code>package com.alibaba.fastjson2; class JSONWriterUTF8 { protected final long byteVectorQuote; <p>JSONWriterUTF8(Context ctx) {<br /> // " -> 0x22, ' -> 0x27<br /> this.byteVectorQuote = this.useSingleQuote ? 0x2727_2727_2727_2727L : 0x2222_2222_2222_2222L;<br /> }</p> <pre><code>public void writeStringLatin1(byte[] value) { final long vecQuote = this.byteVectorQuote; int i = 0; final int upperBound = (value.length - i) &amp; ~7; // 这里一次检测8个byte是否存在特别字符 for (; i &lt; upperBound; i += 8) { if (containsEscaped(IOUtils.getLongLittleEndian(value, i), vecQuote)) { break; } } // ... } static boolean containsEscaped(long v, long quote) { /* for (int i = 0; i &lt; 8; ++i) { byte c = (byte) data; if (c == quote || c == '\\' || c &lt; ' ') { return true; } data &gt;&gt;&gt;= 8; } return false; */ long x22 = v ^ quote; // &quot; -&gt; 0x22, ' -&gt; 0x27 long x5c = v ^ 0x5c5c5c5c5c5c5c5cL; x22 = (x22 - 0x0101010101010101L) &amp; ~x22; x5c = (x5c - 0x0101010101010101L) &amp; ~x5c; return ((x22 | x5c | (0x7F7F_7F7F_7F7F_7F7FL - v + 0x1010_1010_1010_1010L) | v) &amp; 0x8080808080808080L) != 0; } </code></pre> <p>}<br /> </tr></table><br /> </code></pre></p> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/alibaba/fastjson2/commit/a0bb6c0937c76270344901d6b292d47e229bba12"><code>a0bb6c0</code></a> 2.0.54 release</li> <li><a href="https://github.com/alibaba/fastjson2/commit/118333fefbec358507fda5111b85eb951470be93"><code>118333f</code></a> fix compatible error</li> <li><a href="https://github.com/alibaba/fastjson2/commit/b25d78d2371a538c60a0e16b030d3547fc177978"><code>b25d78d</code></a> fix testcase</li> <li><a href="https://github.com/alibaba/fastjson2/commit/3d1cb1dbe69324b2a6f4798b0afd2409e8190d5e"><code>3d1cb1d</code></a> support setUseGsonAnnotation, for issue <a href="https://redirect.github.com/alibaba/fastjson2/issues/3258">#3258</a></li> <li><a href="https://github.com/alibaba/fastjson2/commit/949e86738cc6ba5e2303dd3bb22ef8f345b110ed"><code>949e867</code></a> fix readComment, for issue <a href="https://redirect.github.com/alibaba/fastjson2/issues/3260">#3260</a></li> <li><a href="https://github.com/alibaba/fastjson2/commit/2c76718fff8d1a3061f9d4084a71969d3ba3c46c"><code>2c76718</code></a> CACHE_THRESHOLD 8M</li> <li><a href="https://github.com/alibaba/fastjson2/commit/15d1850096b36506a8d8cb528712036f731cca8c"><code>15d1850</code></a> fix <a href="https://redirect.github.com/alibaba/fastjson2/issues/3264">#3264</a></li> <li><a href="https://github.com/alibaba/fastjson2/commit/fb9dc3139bc9a405a6c38fa73973a763c00c08e0"><code>fb9dc31</code></a> code style</li> <li><a href="https://github.com/alibaba/fastjson2/commit/b4a816e399c3d74a2e5aeb6fc10064cd8f27cc27"><code>b4a816e</code></a> fix comment</li> <li><a href="https://github.com/alibaba/fastjson2/commit/a9e4453b619990219bc0f6ca58a4c90f7a9dcf1c"><code>a9e4453</code></a> vector write</li> <li>Additional commits viewable in <a href="https://github.com/alibaba/fastjson2/compare/2.0.53...2.0.54">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org