Skip to content
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

[Client encryption]: Switch Newtonsoft.Json to use ArrayPool #4726

Merged

Conversation

JanHyka
Copy link
Contributor

@JanHyka JanHyka commented Sep 27, 2024

Pull Request Template

Description

Switches usages of JsonTextReader and JsonTextWriter to use ArrayPool<char>.Shared for better performance and reduced memory allocations. Arrays returned to pool are zeroed for increased data security (at benchmarked cost of ~3.5% extra mean compared to non-zeroed returns).

Type of change

Please delete options that are not relevant.

  • [] Bug fix (non-breaking change which fixes an issue)

Closing issues

Contributes to #4678

@kirankumarkolli
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kirankumarkolli kirankumarkolli merged commit a4242a3 into Azure:master Sep 27, 2024
21 checks passed
@JanHyka JanHyka deleted the users/jan-hyka/newtonsoft-arraypool branch September 30, 2024 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants