Skip to content

Conversation

@stephentoub
Copy link
Member

No description provided.

@ghost
Copy link

ghost commented Jan 31, 2022

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@ghost ghost assigned stephentoub Jan 31, 2022
@ghost
Copy link

ghost commented Jan 31, 2022

Tagging subscribers to this area: @dotnet/area-meta
See info in area-owners.md if you want to be subscribed.

Issue Details

null

Author: stephentoub
Assignees: stephentoub
Labels:

area-Meta

Milestone: -

case '\"':
StringBuilder enquotedString = StringBuilderCache.Acquire();
if (!DateTimeParse.TryParseQuoteString(format, i, enquotedString, out tokenLen))
var enquotedString = new ValueStringBuilder(32);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it make sense to be slightly less conservative? 64?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

@danmoseley
Copy link
Member

BTW, I noticed the comment higher up StreamWriter about #8890

The docs I've seen say that it's not guaranteed that stackallocs are zero inited - although the issue above implies we always do. Should we document that we do without SkipLocalsInit, and don't with SkipLocalsInit? Otherwise it's hard to reason about code.

@stephentoub
Copy link
Member Author

BTW, I noticed the comment higher up StreamWriter about #8890

I don't believe SkipLocalsInit is relevant to that comment. It's talking about ref temporaries on the stack, which need to be zeroed even with SkipLocalsInit.

@stephentoub stephentoub merged commit 9058470 into dotnet:main Jan 31, 2022
@stephentoub stephentoub deleted the corelibsbcache branch January 31, 2022 16:53
@ghost ghost locked as resolved and limited conversation to collaborators Mar 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants