Skip to content

Question: Too many Session.Reset() calls #110

@TrayanZapryanov

Description

@TrayanZapryanov

Hello,

I have a question about an internal class in
https://github.com/dotnet/corefx/blob/6977dddc03f8263ad82228558eb9b02e2e6f530c/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlInternalConnectionTds.cs.
As shown in image below Session.Reset() call is one of main contributors to memory allocations:
SessionData
I've tried to search over internet what can cause this class , but not luck.
Is it possible someone to say when public const byte FEATUREEXT_SRECOVERY = 0x01; was set as it obviously triggers
`if (_deltaDirty)
{

            _delta = new SessionStateRecord[_maxNumberOfSessionStates];
            _deltaDirty = false;

}` case.
Also is it possible to replace this array with a list as making 256 SessionStateRecord objects seems a bit too much for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions