<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:43:16 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CSHARP-2693] Performance: Reduce byte buffer allocations while writing to server</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2693</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Similar to&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2692&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/CSHARP-2692&lt;/a&gt;, calling Utf8Encoding.GetBytes without specifying a byte buffer should be avoided at all costs for best performance.&lt;/p&gt;

&lt;p&gt;The current implementation of ByteBufferStream does already have a concept (using the &quot;_tempUtf8&quot; buffer) where it ends up calling the fast GetBytes() overload that doesn&apos;t allocate its own buffer for strings up to a length that fits into a byte&lt;span class=&quot;error&quot;&gt;&amp;#91;128&amp;#93;&lt;/span&gt; buffer. The 128 elements are a hard limit, though, so for bigger strings, there is a performance penalty.&lt;/p&gt;

&lt;p&gt;I suggest changing this by auto-growing the byte&lt;span class=&quot;error&quot;&gt;&amp;#91;128&amp;#93;&lt;/span&gt; buffer to handle bigger strings, too. This is trading a little bit of memory for performance.&lt;/p&gt;</description>
                <environment></environment>
        <key id="896615">CSHARP-2693</key>
            <summary>Performance: Reduce byte buffer allocations while writing to server</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="boris.dogadov@mongodb.com">Boris Dogadov</assignee>
                                    <reporter username="daniel.hegener@gmx.net">Daniel Hegener</reporter>
                        <labels>
                    </labels>
                <created>Thu, 15 Aug 2019 08:11:33 +0000</created>
                <updated>Sat, 28 Oct 2023 11:48:40 +0000</updated>
                            <resolved>Mon, 1 Mar 2021 22:51:02 +0000</resolved>
                                    <version>2.8.1</version>
                    <version>2.9.0</version>
                                    <fixVersion>2.12.0</fixVersion>
                                    <component>Performance</component>
                    <component>Serialization</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="3640976" author="xgen-internal-githook" created="Mon, 1 Mar 2021 22:45:06 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Boris&apos;, &apos;email&apos;: &apos;boris.dogadov@mongodb.com&apos;, &apos;username&apos;: &apos;BorisDog&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2693&quot; title=&quot;Performance: Reduce byte buffer allocations while writing to server&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2693&quot;&gt;&lt;del&gt;CSHARP-2693&lt;/del&gt;&lt;/a&gt;/&lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2692&quot; title=&quot;Performance: Reduce byte buffer allocations during deserialization&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2692&quot;&gt;&lt;del&gt;CSHARP-2692&lt;/del&gt;&lt;/a&gt;: Encoding.GetBytes buffer caching optimization&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/f0bece570fdd3c8ede73981adaa89a225caa978c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/f0bece570fdd3c8ede73981adaa89a225caa978c&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hy79pj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>