algolia / algoliasearch-client-csharp

⚡️ A fully-featured and blazing-fast C# API client to interact with Algolia.
https://www.algolia.com/doc/api-client/getting-started/install/csharp/
MIT License
120 stars 61 forks source link

Buffering #817

Open SebastianStehle opened 2 years ago

SebastianStehle commented 2 years ago

Description

I have seen that you use a lot of buffering (aka MemoryStream) for request and response parsing. It has some value for retries, but for the successful cases it causes unnecessary pressure on the GC.

Is this something you would accept a PR?

Steps To Reproduce

Ant-hem commented 2 years ago

Hello,

Can you elaborate on your use case? Would you also have some numbers/benchmarks to share regarding the GC/memory pressure?