mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
* list count bench * Refactor list count avoid duplicate the vec * optimize list count with HEAPTYPE flag * introduce generic safe iter functions for list * Refactor list functions (contains, index, remove) * Refactor list iter functions with const generics * optimize list with richcompare * optimize list iter_equal
8 lines
99 B
Python
8 lines
99 B
Python
class A:
|
|
def __eq__(self, other):
|
|
return True
|
|
|
|
l = [A()] * ITERATIONS
|
|
|
|
# ---
|
|
l.count(1) |