<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:01:00 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>[CXX-984] Improve use of bson_init_static</title>
                <link>https://jira.mongodb.org/browse/CXX-984</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;We call bson_init_static repeatedly and redundantly (e.g. on every element access).&lt;br/&gt;
We should call bson_init_static once on view creation and cache the result.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Update&lt;/b&gt;: we can&apos;t cache a &lt;tt&gt;bson_t&lt;/tt&gt; because it uses internal references and it therefore non-copyable without dangling pointers.  We&apos;ve proposed &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2064&quot; title=&quot;Add bson_iter_init_from_data function&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2064&quot;&gt;&lt;del&gt;CDRIVER-2064&lt;/del&gt;&lt;/a&gt;, which would allow us to construct &lt;tt&gt;bson_iter_t&lt;/tt&gt; structures directly directly from the view buffer.&lt;/p&gt;</description>
                <environment></environment>
        <key id="307142">CXX-984</key>
            <summary>Improve use of bson_init_static</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="isabella.siu@mongodb.com">Isabella Siu</assignee>
                                    <reporter username="david.golden@mongodb.com">David Golden</reporter>
                        <labels>
                    </labels>
                <created>Sun, 7 Aug 2016 20:10:17 +0000</created>
                <updated>Fri, 17 Nov 2017 17:14:15 +0000</updated>
                            <resolved>Mon, 26 Jun 2017 17:09:22 +0000</resolved>
                                                    <fixVersion>3.2.0-rc0</fixVersion>
                                    <component>BSON</component>
                    <component>Implementation</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1606738" author="xgen-internal-githook" created="Mon, 26 Jun 2017 17:34:33 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;iwysiu&apos;, u&apos;name&apos;: u&apos;Isabella Siu&apos;, u&apos;email&apos;: u&apos;sakurablossom@blueblueworld.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-984&quot; title=&quot;Improve use of bson_init_static&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-984&quot;&gt;&lt;del&gt;CXX-984&lt;/del&gt;&lt;/a&gt; improve use of bson_init_static&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/41f9a6269180f1ef43a116549e38ee2268f60329&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/41f9a6269180f1ef43a116549e38ee2268f60329&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1506311" author="david.golden" created="Wed, 22 Feb 2017 18:30:55 +0000"  >&lt;p&gt;This is blocked waiting on &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2064&quot; title=&quot;Add bson_iter_init_from_data function&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2064&quot;&gt;&lt;del&gt;CDRIVER-2064&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="1401105" author="david.golden" created="Wed, 5 Oct 2016 17:44:14 +0000"  >&lt;p&gt;I&apos;ve split this to cover the improvement and linked to the general &quot;check all return values&quot; ticket for the other part.&lt;/p&gt;</comment>
                            <comment id="1350274" author="acm" created="Mon, 8 Aug 2016 16:08:53 +0000"  >&lt;p&gt;I&apos;d argue that it is a bug, which is why I scheduled it for 3.0.2.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="356297">CDRIVER-2064</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="320711">CXX-1066</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|hr9npr:</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="1227">Platforms 2016-08-26</customfieldvalue>

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