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
Expected behavior
There are slight clarity, performance and memory gains by avoiding unnecessary creation via use of generator expressions - e.g. the above could be changed to:
which only creates a single list, rather than two sets and a list.
System (please complete the following information):
n/a
Additional context
Over such small sizes of list/set it won't make a tangible performance impact, so this is pretty low-priority - but I think it also makes the code a bit clearer.
The text was updated successfully, but these errors were encountered:
Describe the bug
In some places, objects are created unnecessarily - e.g. here:
To Reproduce
n/a
Expected behavior
There are slight clarity, performance and memory gains by avoiding unnecessary creation via use of generator expressions - e.g. the above could be changed to:
which only creates a single list, rather than two sets and a list.
System (please complete the following information):
n/a
Additional context
Over such small sizes of list/set it won't make a tangible performance impact, so this is pretty low-priority - but I think it also makes the code a bit clearer.
The text was updated successfully, but these errors were encountered: