Last active
March 23, 2022 12:14
-
-
Save deven96/973c4ec3623f5b72f1d88197e72d4381 to your computer and use it in GitHub Desktop.
Simple example description
This file contains hidden or 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
from memory_profiler import profile | |
@profile | |
def my_func(): | |
a = [1] * (10 ** 6) | |
b = [2] * (2 * 10 ** 7) | |
return a.append(b[200000]) | |
if __name__ == '__main__': | |
my_func() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment