News for hackers. Stuff that matters.
Re:How Many Lines of C It Takes to Execute a and B in Python? by vhcr on Monday December 11, 2023 @09:11AM (#38600763)
Don't use user-supplied integers on dicts or sets on Python:

>>> {i for i in range(10000)}

Takes 0.005s

>>> {i * sys.hash_info.modulus for i in range(10000)}

Takes 0.76s

There are no comments on this comment yet.