Created
June 9, 2022 01:10
-
-
Save brunokim/a894076bf727ba18d29b3279a867fd10 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_counter_size(c: Counter) -> int: | |
size = sys.getsizeof(c) | |
size += sum(sys.getsizeof(key) for key in c) | |
return size |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment