Closed MJEdwin closed 2 months ago
Hi. Thanks for your contribution - will take a look this week
Excellent idea, few minor notes:
BulkCopyHttpContent
and Batch
classes can be merged - there's not much sense in maintaining separate objectsCompressionLevel.Fastest
BulkCopyHttpContent
still needs to be disposed in SendBatchAsync
?Excellent idea, few minor notes:
- It looks like
BulkCopyHttpContent
andBatch
classes can be merged - there's not much sense in maintaining separate objects- I don't think it has merit to maintain the uncompressed path - there's essentially no circumstances where it outperforms
CompressionLevel.Fastest
- I think
BulkCopyHttpContent
still needs to be disposed inSendBatchAsync
?
@DarkWanderer i solved it
Thank you for your contribution!
BulkCopy SerializeToBatch Use MemoryStream will cost lot of memory,this operation can be deferred to HttpContent to avoid memory allocation of MemoryStream