| leonardo ( |
Re: Slightly flawed
Tuples have anonymous fields, this may lead to troubles (so Hettinger has created the named tuples).
Probably your suggestions can improve the timings of the Python code.
The purpose of this comparison isn't to show who is the faster one, or to show that D AAs are faster than Python ones (usually they are aren't).
The purpose is to show a difference in the algorithm used to resolve collisions; in D it's tree-based, in Python it is not, so in this test I was interested in how timings grow and not in actual baseline performance.
Tuples have anonymous fields, this may lead to troubles (so Hettinger has created the named tuples).
Probably your suggestions can improve the timings of the Python code.
The purpose of this comparison isn't to show who is the faster one, or to show that D AAs are faster than Python ones (usually they are aren't).
The purpose is to show a difference in the algorithm used to resolve collisions; in D it's tree-based, in Python it is not, so in this test I was interested in how timings grow and not in actual baseline performance.