<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:36:53 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>[GODRIVER-1670] Use buffer pooling and copying return values to reduce memory allocation</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1670</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;Currently new byte slices are created every time Operation.Execute is called. We can reduce this by pooling the byte slices in the background and copying return values, which are usually subslices, into new slices before returning them, which will free up the original slice.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1400175">GODRIVER-1670</key>
            <summary>Use buffer pooling and copying return values to reduce memory allocation</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="qingyang.hu@mongodb.com">Qingyang Hu</assignee>
                                    <reporter username="rachelle.palmer@mongodb.com">Rachelle Palmer</reporter>
                        <labels>
                    </labels>
                <created>Thu, 2 Jul 2020 15:20:49 +0000</created>
                <updated>Sat, 28 Oct 2023 11:38:07 +0000</updated>
                            <resolved>Thu, 8 Sep 2022 18:03:01 +0000</resolved>
                                                    <fixVersion>1.11.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="4812530" author="JIRAUSER1268281" created="Thu, 8 Sep 2022 18:03:01 +0000"  >&lt;p&gt;Fixed in &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-2021&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;GODRIVER-2021&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3650155" author="isabella.siu" created="Fri, 5 Mar 2021 20:30:13 +0000"  >&lt;p&gt;After some investigation, to expand on Jeff&apos;s comment above, which is likely to be be the best way to handle this, Operation.Execute() currently takes in a scratch parameter, ostensibly for setting up pooling in a ticket like this, but because of the way that scratch slice gets passed through&#160;the function and into the results means that more would need to change to enable this.&lt;br/&gt;
The BatchCursor and build_Result functions seem like the most logical place to make the copies, to reduce unnecessary copying and maintain&#160;correct ownership.&lt;br/&gt;
While sync.Pool could be used to pool both of these, note that byte slices should be presized before being stored and that performance should be checked to make sure that there&apos;s actually an improvement.&lt;/p&gt;</comment>
                            <comment id="3272177" author="jeff.yemin" created="Tue, 7 Jul 2020 14:27:22 +0000"  >&lt;p&gt;Consider using this ticket as a springboard for:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;buffer pooling to reduce GC pressure&lt;/li&gt;
	&lt;li&gt;copying from the buffer for any slices returned to application, to avoid holding on to a larger slice by a smaller sub-slicehttps://jira.mongodb.org/browse/GODRIVER-1670#&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                        <issuelink>
            <issuekey id="2205434">GODRIVER-2677</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1362220">GODRIVER-1624</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1757138">GODRIVER-2026</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1751157">GODRIVER-2021</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1756972">GODRIVER-2025</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="268819" name="cursor_fetch.go" size="1101" author="jeff.yemin@mongodb.com" created="Tue, 7 Jul 2020 14:29:07 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                    <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[5002K00000no0OjQAI]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>GODRIVER-1693</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_21553" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Quarter</customfieldname>
                        <customfieldvalues>
                                        <label>FY23Q2</label>
            <label>FY23Q3</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr6k53:</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>