Commit a0b79e7
Override CopyTo to improve performance (#278)
* Override CopyTo to improve performance
If CopyTo is not overriden, it is used the default implementation in Stream class which is inefficient as it uses ArrayPool and writes in loop.
* Update src/RecyclableMemoryStream.cs
good idea!
Co-authored-by: Gregory Bell <65985703+grbell-ms@users.noreply.github.com>
---------
Co-authored-by: lechu445 <xxx@example.com>
Co-authored-by: Gregory Bell <65985703+grbell-ms@users.noreply.github.com>1 parent 5397c3c commit a0b79e7
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
554 | 562 | | |
555 | 563 | | |
556 | 564 | | |
| |||
0 commit comments