3 ms·
Every mutable collection needs to lock before write? Sounds slow af
by HDThoreaun 3y ago
Every mutable collection needs to lock before write? Sounds slow af
- quietbritishjim 3y agoLocks are generally very cheap if they're not contended. Of course it's all relative though!
- gnulinux 3y agoThey're cheap but they're not free. If you do it at literally every single rw operation at runtime, it's going to add up.
- fbdab103 3y agoLast I looked, the nogil implementation was some 5-10% slower than the current, owing to all of the extra locking.