SqlBulkCopy - ReadWriteColumnValueAsync creates lot of garbage
Open
- Dominant language
- C#
- Stars
- 989
- Forks
- 340
- Avg merge
- 4d 18h
- Merged PRs (30d)
- 69
Description
ReadWriteColumnValueAsync is written generically, retrieving an object representation of the row's value and passing around `object` between the read & write. Usually this is a value type that gets boxed, creating GC pressure.
### Describe the solution you'd like
I would like ReadWriteColumnValueAsync to leverage generics and the full IDataReader interface to avoid boxing unless absolutely necessary.
This read value portion should also respect `IDataReader.GetFieldType` and its underlying value getters (`GetDecimal`, etc.)
Contributor guide
Assessment
This issue has not been assessed yet.