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
The Visual Studio .NET Memory Allocation profiler shows columnDefinition.ColumnFlags.HasFlag(ColumnFlags.Unsigned) (in MySqlDataReader) as allocating a 4-byte ColumnFlags object. The equivalent bitwise test (columnDefinition.ColumnFlags & ColumnFlags.Unsigned) != 0 has no allocations.
Replace Enum.HasFlag with the equivalent bitwise test in any code that might be called frequently during data access.
(Wait for #136 since it'll be rearranging a lot of the usages of HasFlag.)
The text was updated successfully, but these errors were encountered:
The Visual Studio .NET Memory Allocation profiler shows
columnDefinition.ColumnFlags.HasFlag(ColumnFlags.Unsigned)
(in MySqlDataReader) as allocating a 4-byteColumnFlags
object. The equivalent bitwise test(columnDefinition.ColumnFlags & ColumnFlags.Unsigned) != 0
has no allocations.Replace
Enum.HasFlag
with the equivalent bitwise test in any code that might be called frequently during data access.(Wait for #136 since it'll be rearranging a lot of the usages of
HasFlag
.)The text was updated successfully, but these errors were encountered: