<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:46:59 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-4028] Performance: Too many lambda closure allocations in JsonWriter.EscapedString</title>
                <link>https://jira.mongodb.org/browse/CSHARP-4028</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Some lambda closure related allocation topic has popped up in my most recent perf. profiling:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/357914/357914_image-2022-01-31-22-52-21-374.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/357915/357915_image-2022-01-31-22-51-48-450.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/357913/357913_image-2022-01-31-22-55-01-398.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;The fix for this appears to be a complete no-brainer: Make the NeedsEscaping method static. I will create a PR for this. There&apos;s additional algorithmic improvement opportunities here but I am not sure they&apos;re worth looking into at this stage. Will keep on profiling. &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/wink.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1974510">CSHARP-4028</key>
            <summary>Performance: Too many lambda closure allocations in JsonWriter.EscapedString</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="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="daniel.hegener@gmx.net">Daniel Hegener</reporter>
                        <labels>
                            <label>Performance</label>
                    </labels>
                <created>Mon, 31 Jan 2022 21:55:08 +0000</created>
                <updated>Sat, 28 Oct 2023 11:47:22 +0000</updated>
                            <resolved>Wed, 2 Feb 2022 17:41:33 +0000</resolved>
                                    <version>2.14.0</version>
                                    <fixVersion>2.15.0</fixVersion>
                                    <component>Json</component>
                    <component>Performance</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4330934" author="xgen-internal-githook" created="Wed, 2 Feb 2022 17:40:21 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Daniel Hegener&apos;, &apos;email&apos;: &apos;daniel.hegener@fisglobal.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-4028&quot; title=&quot;Performance: Too many lambda closure allocations in JsonWriter.EscapedString&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-4028&quot;&gt;&lt;del&gt;CSHARP-4028&lt;/del&gt;&lt;/a&gt;: Reduced allocations by eliminating a lambda closure&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/0ce5205228195ad07580e3552b45a9c8d561c05a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/0ce5205228195ad07580e3552b45a9c8d561c05a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4326575" author="rstam" created="Tue, 1 Feb 2022 01:25:29 +0000"  >&lt;p&gt;Thank you for creating this ticket and for submitting a PR for it. We will review it soon.&lt;/p&gt;</comment>
                            <comment id="4326164" author="JIRAUSER1256534" created="Mon, 31 Jan 2022 22:05:47 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/pull/726&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/pull/726&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="357915" name="image-2022-01-31-22-51-48-450.png" size="107382" author="daniel.hegener@gmx.net" created="Mon, 31 Jan 2022 21:51:49 +0000"/>
                            <attachment id="357914" name="image-2022-01-31-22-52-21-374.png" size="15582" author="daniel.hegener@gmx.net" created="Mon, 31 Jan 2022 21:52:23 +0000"/>
                            <attachment id="357913" name="image-2022-01-31-22-55-01-398.png" size="21163" author="daniel.hegener@gmx.net" created="Mon, 31 Jan 2022 21:55:02 +0000"/>
                    </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_21553" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Quarter</customfieldname>
                        <customfieldvalues>
                                        <label>FY22Q1</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i01rcf:</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>