Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
class Lime:
pass
limes = []
def limify():
limes = [ Lime() ] * 300_000
def get_rid_of_limes():
for lime in limes:
del lime
if __name__ == '__main__':
import timeit
limify()
print(timeit.timeit("get_rid_of_limes()", setup="from __main__ import get_rid_of_limes", number=1))
I've done some experiments and according to my tests, it takes around 7-9 microseconds to get rid of three hundred thousand limes.
*u stinky*
Offline
class Lime: pass limes = [] def limify(): limes = [ Lime() ] * 300_000 def get_rid_of_limes(): for lime in limes: del lime if __name__ == '__main__': import timeit limify() print(timeit.timeit("get_rid_of_limes()", setup="from __main__ import get_rid_of_limes", number=1))
I've done some experiments and according to my tests, it takes around 7-9 microseconds to get rid of three hundred thousand limes.
well lime is the universal hacker text colour so it makes sense...
:.|:;
Offline
Hold on, what constitutes "getting rid of" exactly? Can you just walk away from the limes and say "these aren't mine, I have nothing to do with them?"
10 years and still awkward. Keep it up, baby!
Offline
Can we eat the limes
Offline
[ Started around 1714375040.488 - Generated in 0.039 seconds, 13 queries executed - Memory usage: 1.4 MiB (Peak: 1.5 MiB) ]