
Jan. 20, 2022
12:34 a.m.
Christopher Barker writes:
If this does all come to pass, then:
s = {3,8,2}.frozen() will be slightly faster, in some case, than s = frozenset({3,8,2}
but the result would be the same.
There are plenty of tricks to in python to get a touch more performance, this would just be one more and frankly pretty rare that it would make an noticable difference at all.
+1 on this +0 on f{} -1 on making frozenset a keyword
Stated better than I could, expresses my feelings exactly. Sticking to integers (in floats I'd be less than -0 on f{}), I'll go with Chris's ratings, too. Steve