Open colesbury opened 3 days ago
@corona10 - I put my name down next to STORE_ATTR
, but then got confused and worked on STORE_SUBSCR
instead. Sorry!
(STORE_ATTR
is up for grabs)
I put my name down next to STORE_ATTR, but then got confused and worked on STORE_SUBSCR instead. Sorry!
Race condition with the wrong lock :) Fine, thank you for the work, I've updated the list of issues.
Performance difference is marginal: 1.00x faster (but 99.99% likely to be faster)
I think it's worth doing even if the perf is neutral just to minimize divergence with the default (GIL) build.
The specialization only depends on the type, so no special thread-safety considerations there.
STORE_SUBSCR_LIST_INT needs to lock the list before modifying it.
_PyDict_SetItem_Take2
already internally locks the dictionary using a critical section.