-
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
[Internal] Documentation: Add notes and test for memory optimization #1399
[Internal] Documentation: Add notes and test for memory optimization #1399
Conversation
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: (Add|Fix|Refactor) Description"
Examples:
Diagnostics: Add GetElapsedClientLatency to CosmosDiagnostics
PartitionKey: Fix null reference when using default(PartitionKey)
[v4] Client Encryption: Refactor code to external project
[Internal] Query: Add code generator for CosmosNumbers for easy additions in the future.
* Bump direct version 3.9.0 * [Internal] Documentation: Add notes and test for memory optimization (#1399) * add test for memorybuffer * changelog * Diagnostics: Add CPU monitoring for .Net Core (#1400) * [Internal] Diagnostics: Add Cpu monitoring for .Net Core * [Internal] Diagnostics: Add Cpu monitoring for .Net Core CI test coverage * Diagnostics: Add Cpu monitoring for .Net Core Diagnostics: Add Cpu monitoring for .Net Core * [Internal]: Diagnostics: Fix for unit tests to address code review comments * Diagnostics: Add CPU monitoring for .Net Core (#1402) * [Internal] Diagnostics: Add Cpu monitoring for .Net Core * [Internal] Diagnostics: Add Cpu monitoring for .Net Core CI test coverage * Diagnostics: Add Cpu monitoring for .Net Core Diagnostics: Add Cpu monitoring for .Net Core * [Internal]: Diagnostics: Fix for unit tests to address code review comments * Update changelog.md Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com> Co-authored-by: Fabian Meiswinkel <fabianm@microsoft.com>
* [Internal] Documentation: Fix text on retry builder extension (#1388) * Autoscale: Fix ThroughputProperties factory names (#1392) * Changed CreateFixedOffer to CreateManualOffer to matcht the portal * Updated contract docs * Fixed contract to use preview version * CreateAutoscaleProvionedThroughput to CreateAutoscaleThroughput * Removed redundant throughput * Updated naming again * Update contract * Client Encryption : Add nuget info to Encryption csproj and compile against preview SDK (#1385) * Add nuget info to Encryption csproj and compile against preview SDK * Remove SourceLink related property unless we need it at first go * Encryption versioning independent of client * Set 3.8.0-preview as minimum client version that would be referenced by Encryption assembly * Add back PREVIEW constant * Internal Query: Add logic to execute some queries as Passthrough when possible (#1319) * added passthrough code path * added another condition * added some sanity tests * moved passthrough creation into pipeline * added test injections to observe whether the query is passthrough or not * missed case where query has top, order by, offset limit * resolved iteration comments * fixed nullable check * fixed typo * [Preview] Change Feed: Add FeedRange and continuation separate (#1355) FeedRange and continuation separate * [Internal] Pipeline: Add Microsoft.Azure.Cosmos.Encryption release pipeline (#1403) * encryption pipeline * removing cred check * Fix path * Apply suggestions from code review Co-Authored-By: j82w <j82w@users.noreply.github.com> Co-authored-by: j82w <j82w@users.noreply.github.com> * [Internal] Direct Version: Add direct version 3.9.0 (#1398) * Bump direct version 3.9.0 * [Internal] Documentation: Add notes and test for memory optimization (#1399) * add test for memorybuffer * changelog * Diagnostics: Add CPU monitoring for .Net Core (#1400) * [Internal] Diagnostics: Add Cpu monitoring for .Net Core * [Internal] Diagnostics: Add Cpu monitoring for .Net Core CI test coverage * Diagnostics: Add Cpu monitoring for .Net Core Diagnostics: Add Cpu monitoring for .Net Core * [Internal]: Diagnostics: Fix for unit tests to address code review comments * Diagnostics: Add CPU monitoring for .Net Core (#1402) * [Internal] Diagnostics: Add Cpu monitoring for .Net Core * [Internal] Diagnostics: Add Cpu monitoring for .Net Core CI test coverage * Diagnostics: Add Cpu monitoring for .Net Core Diagnostics: Add Cpu monitoring for .Net Core * [Internal]: Diagnostics: Fix for unit tests to address code review comments * Update changelog.md Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com> Co-authored-by: Fabian Meiswinkel <fabianm@microsoft.com> * Fixed changelog and updated api Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com> Co-authored-by: abhijitpai <abpai@microsoft.com> Co-authored-by: Brandon Chong <bchong95@users.noreply.github.com> Co-authored-by: Fabian Meiswinkel <fabianm@microsoft.com>
Direct 3.9.0 brings MemoryStream with TryGetBuffer support on DocumentServiceResponse, which benefits any code path that uses TryGetBuffer on the response Content to avoid Array allocations, like the query CosmosElementSerializer (https://github.com/Azure/azure-cosmos-dotnet-v3/blob/master/Microsoft.Azure.Cosmos/src/CosmosElements/CosmosElementSerializer.cs#L84). It should yield a reduced memory allocation and reduced CPU (due to less GC work).
Type of change