<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:11:54 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>[CDRIVER-1215] Eliminate copy of command reply document</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-1215</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;mongoc_client_command_simple takes a pointer to a bson_t, &lt;b&gt;into&lt;/b&gt; which it must copy the command reply. In the past, users who wanted to avoid the copy could use mongoc_client_command instead. (It returns a cursor which holds the original RPC, avoiding the copy.)&lt;/p&gt;

&lt;p&gt;But the new find / getMore commands required me to separate commands from cursors (&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-906&quot; title=&quot;Separate command and query code&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-906&quot;&gt;&lt;del&gt;CDRIVER-906&lt;/del&gt;&lt;/a&gt;) and send all &quot;find&quot; commands through the cursor-less command path, which copies the reply. (See _mongoc_cursor_find_command.)&lt;/p&gt;

&lt;p&gt;Eliminate the copy:&lt;/p&gt;

&lt;p&gt;1. Add uint8_t *bson_reserve_buffer(bson_t, size_t).&lt;br/&gt;
2. Use bson_reserve_buffer to preallocate the reply&apos;s internal buffer as soon as we know the reply&apos;s size.&lt;br/&gt;
3. Receive the server response directly into the reply buffer.&lt;/p&gt;</description>
                <environment></environment>
        <key id="283500">CDRIVER-1215</key>
            <summary>Eliminate copy of command reply document</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="9">Done</resolution>
                                        <assignee username="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="jesse@mongodb.com">A. Jesse Jiryu Davis</reporter>
                        <labels>
                    </labels>
                <created>Fri, 29 Apr 2016 21:16:32 +0000</created>
                <updated>Wed, 10 Aug 2016 22:10:37 +0000</updated>
                            <resolved>Tue, 24 May 2016 13:23:04 +0000</resolved>
                                    <version>1.3.0</version>
                                    <fixVersion>1.4.0</fixVersion>
                                    <component>libmongoc</component>
                    <component>Performance</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1273663" author="xgen-internal-githook" created="Tue, 24 May 2016 16:07:49 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1215&quot; title=&quot;Eliminate copy of command reply document&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1215&quot;&gt;&lt;del&gt;CDRIVER-1215&lt;/del&gt;&lt;/a&gt; unused-function warnings&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/ac57f48a0a266138bf5c3ef74e805fcd87d0b68f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/ac57f48a0a266138bf5c3ef74e805fcd87d0b68f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1273651" author="xgen-internal-githook" created="Tue, 24 May 2016 15:59:52 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1215&quot; title=&quot;Eliminate copy of command reply document&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1215&quot;&gt;&lt;del&gt;CDRIVER-1215&lt;/del&gt;&lt;/a&gt; overflow warning in test&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/dabddecca853f7ff2729ef4554d1ff0ded5b8ae0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/dabddecca853f7ff2729ef4554d1ff0ded5b8ae0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1273352" author="xgen-internal-githook" created="Tue, 24 May 2016 13:47:49 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1215&quot; title=&quot;Eliminate copy of command reply document&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1215&quot;&gt;&lt;del&gt;CDRIVER-1215&lt;/del&gt;&lt;/a&gt; distribute op-reply-header.def&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/2a7e528694572c43e18238f7aa80172f86201d41&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/2a7e528694572c43e18238f7aa80172f86201d41&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1273311" author="xgen-internal-githook" created="Tue, 24 May 2016 13:22:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1215&quot; title=&quot;Eliminate copy of command reply document&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1215&quot;&gt;&lt;del&gt;CDRIVER-1215&lt;/del&gt;&lt;/a&gt; don&apos;t copy command reply&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/11555f94d2892efd149da22994e097a90b758032&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/11555f94d2892efd149da22994e097a90b758032&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1273301" author="xgen-internal-githook" created="Tue, 24 May 2016 13:15:56 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1215&quot; title=&quot;Eliminate copy of command reply document&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1215&quot;&gt;&lt;del&gt;CDRIVER-1215&lt;/del&gt;&lt;/a&gt; implement bson_reserve_buffer&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/4efe8e266b6a711125d3ca152e0502811a69be0c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/4efe8e266b6a711125d3ca152e0502811a69be0c&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="282819">CDRIVER-1212</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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|hschin:</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>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="959">C Driver 2016 sprint 4</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>