≈ the.bay.news

List creation faster than tuple in 3.14

Discussions on Python.org
List creation faster than tuple in 3.14
I noticed that list creation is faster than tuple in Python 3.14. On my machine, the difference starts when the size is ~10. This is quite interesting. How was it achieved? Isn’t it possible to apply the same optimization to tuple too?

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.