Skip to content

Conversation

BrennanConroy
Copy link
Member

See #7468 and #7422

@BrennanConroy BrennanConroy added the area-signalr Includes: SignalR clients and servers label Feb 12, 2019
using System.Runtime.CompilerServices;
using System.Threading.Tasks;

namespace Microsoft.AspNetCore.Internal
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a fan of this namespace. Is this appropriate?

<Compile Include="$(SignalRSharedSourceRoot)PipeWriterStream.cs" Link="PipeWriterStream.cs" />
<Compile Include="$(SignalRSharedSourceRoot)ReflectionHelper.cs" Link="ReflectionHelper.cs" />
<Compile Include="$(SignalRSharedSourceRoot)TimerAwaitable.cs" Link="Internal\TimerAwaitable.cs" />
<Compile Include="$(SignalRSharedSourceRoot)ValueTaskExtensions.cs" Link="Internal\ValueTaskExtensions.cs" />
Copy link
Member

Choose a reason for hiding this comment

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

IMO instead of placing this code under SignalR's shared source directory, it should be under the repos shared source directory: src/Shared -> https://github.com/aspnet/AspNetCore/tree/master/src/Shared

That way Kestrel and SignalR can use the same copy of code. There is no overhead of creating a source package because we mono repo now.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Do it in another PR. I don't care that much.

Copy link

@ycrumeyrolle ycrumeyrolle left a comment

Choose a reason for hiding this comment

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

You can apply the same optimization to the SignalR client in the class ServerSentEventsMessageParser with the fields _dataPrefix and _sseLineEnding .

@BrennanConroy BrennanConroy merged commit 9de42d5 into master Feb 14, 2019
@BrennanConroy BrennanConroy deleted the brecon/signalrperf branch February 14, 2019 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-signalr Includes: SignalR clients and servers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants