Skip to content

Removed unnecessary variable initialization from discard method on so…#243

Open
RScrusoe wants to merge 1 commit intograntjenks:masterfrom
RScrusoe:patch-1
Open

Removed unnecessary variable initialization from discard method on so…#243
RScrusoe wants to merge 1 commit intograntjenks:masterfrom
RScrusoe:patch-1

Conversation

@RScrusoe
Copy link

@RScrusoe RScrusoe commented Oct 5, 2024

…rted sets

We can avoid declaring _set variable and directly access self._set. For now doing this in discard method only. I can work on entire code base to remove unnecessary allocations, only in the places where this does not adversely affect the readability

…rted sets

We can avoid declaring _set variable and directly access self._set.
For now doing this in discard method only. I can work on entire code base to remove unnecessary allocations, only in the places where this does not adversely affect  the readability
@xintenseapple
Copy link

At some point this should be done for the entire codebase, it impedes the readability of everything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants