<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:42:25 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-2391] Provide an overload for JsonWriter.WriteValue to accept Span&lt;byte&gt; input</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2391</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;The recently introduced &lt;tt&gt;Span&amp;lt;T&amp;gt;&lt;/tt&gt; offers advantages, specifically obviating the need to deal with byte buffers in most cases. I started to use it in my code, too, but the C# driver&apos;s &lt;tt&gt;JsonWriter.WriteValue&lt;/tt&gt; method won&apos;t accept &lt;tt&gt;Span&amp;lt;byte&amp;gt;&lt;/tt&gt; and a span has to be converted to a byte array first, which results in a heap allocation: &lt;tt&gt;span.ToArray()&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;The driver should support this new .NET type so that we can use it without such unnecessary allocation penalties.&lt;/p&gt;</description>
                <environment></environment>
        <key id="607950">CSHARP-2391</key>
            <summary>Provide an overload for JsonWriter.WriteValue to accept Span&lt;byte&gt; input</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="ugur.pelister@outlook.com">U&#287;ur Pelister</reporter>
                        <labels>
                    </labels>
                <created>Fri, 21 Sep 2018 10:54:35 +0000</created>
                <updated>Thu, 31 Mar 2022 00:49:09 +0000</updated>
                                            <version>2.7.0</version>
                                                    <component>BSON</component>
                    <component>Json</component>
                    <component>Performance</component>
                                        <votes>1</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="2020299" author="rstam" created="Tue, 2 Oct 2018 13:07:28 +0000"  >&lt;p&gt;Using Span&amp;lt;T&amp;gt; is only possible on newer versions of .NET Framework and .NET Standard.&lt;/p&gt;

&lt;p&gt;Before we can add support for Span&amp;lt;T&amp;gt; we need to add new target frameworks to our build system, and make support for Span&amp;lt;T&amp;gt; conditional to just the target frameworks that support it.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="492435">CSHARP-2174</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="611318">CSHARP-2400</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htyz2f:</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>