-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance: Adds headers optimization #1781
Conversation
# Conflicts: # Microsoft.Azure.Cosmos/src/Headers/CosmosMessageHeadersInternal.cs # Microsoft.Azure.Cosmos/src/Headers/Headers.cs
# Conflicts: # Microsoft.Azure.Cosmos/src/Headers/Headers.cs
# Conflicts: # Microsoft.Azure.Cosmos/src/Headers/CosmosMessageHeadersInternal.cs # Microsoft.Azure.Cosmos/src/Headers/Headers.cs
# Conflicts: # Microsoft.Azure.Cosmos/src/Headers/Headers.cs
…ception from unnecessary ToString()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please follow the required format: "[Internal] Category: (Adds|Fixes|Refactors) Description"
Examples:
Diagnostics: Adds GetElapsedClientLatency to CosmosDiagnostics
PartitionKey: Fixes null reference when using default(PartitionKey)
[v4] Client Encryption: Refactors code to external project
[Internal] Query: Adds code generator for CosmosNumbers for easy additions in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting for ContenxtLength comment
LockContention highly variable (varies across stream, etc.. it-self), any idea where is it coming from? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some comments relative to constants.
Microsoft.Azure.Cosmos/src/Headers/CosmosMessageHeadersInternal.cs
Outdated
Show resolved
Hide resolved
Closing due to in-activity, pease feel free to re-open. |
Pull Request Template
Description
This changes the headers to base-line to simple implementation. Benchmarks will be added soon. This continues the current PR: #1619.
Blue is the current PR, Orange is master. Roughly 20% improvement in Rps.
BenchmarkDotNet=v0.12.0, OS=Windows 10.0.17763.1397 (1809/October2018Update/Redstone5)
Intel Xeon Platinum 8272CL CPU 2.60GHz, 1 CPU, 4 logical and 2 physical cores
.NET Core SDK=3.1.401
[Host] : .NET Core 3.1.7 (CoreCLR 4.700.20.36602, CoreFX 4.700.20.37001), X64 RyuJIT
Job-UEAUJY : .NET Core 3.1.7 (CoreCLR 4.700.20.36602, CoreFX 4.700.20.37001), X64 RyuJIT
Improvements on average:
10KB or 28% drop in allocation
40 us or 10% drop in mean latency
Master branch:
Current PR:
Type of change
Please delete options that are not relevant.
Closing issues
To automatically close an issue: closes #IssueNumber