Re:Records: Python library for making raw SQL queries to Pos...
by Redoubts on Sunday February 07, 2016 @09:21PM
(#11056066)
It's really weird that immutable tuples take a performance hit, compared to mutable lists (almost 50% on access!?!).
[ Parent
| on HN ]
Re:Records: Python library for making raw SQL queries to Pos...
by pyre on Monday February 08, 2016 @01:02AM
(#11056570)
That's because Python 2 has a special case for lists[1]. This does not exist in Python 3[2] (and therefore neither does the performance difference).
[1] https://github.com/python/cpython/blob/2.7/Python/ceval.c#L1...
[2] https://github.com/python/cpython/blob/master/Python/ceval.c...