ktmud commented on PR #22085:
URL: https://github.com/apache/superset/pull/22085#issuecomment-1317314117

   Set has the additional memory cost of keeping the hashtable of elements: 
https://towardsdatascience.com/memory-efficiency-of-common-python-data-structures-88f0f720421
   
   Maybe not a big deal in this case but in general I don't think we should 
sacrifice performance for an implied convention that is supposed to help with 
readability.
   
   Regarding readability, in the case where sets are used, people would wonder 
"why this HAS to be a set" (like I did), which actually makes the code more 
confusing to them.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to