You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use a custom implementation of DbDataReader that acts as a bridge between an underlying type/class (table-valued parameter), and I noticed that during string processing, the flow falls into SetChars_FromReader, which creates a char[] each time.
Maybe it makes sense to consider using an array pool instead of direct allocation?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I use a custom implementation of
DbDataReaderthat acts as a bridge between an underlying type/class (table-valued parameter), and I noticed that during string processing, the flow falls into SetChars_FromReader, which creates achar[]each time.Maybe it makes sense to consider using an array pool instead of direct allocation?
Beta Was this translation helpful? Give feedback.
All reactions