xid icon indicating copy to clipboard operation
xid copied to clipboard

remove lock

Open chenkovsky opened this issue 1 year ago • 1 comments

itertools.count is thread safe. we can use this to remove lock

chenkovsky avatar Apr 17 '24 09:04 chenkovsky

I vaguely remember reading about this when I was porting it and if I recall correctly, itertools doesn't guarantee thread safety and is only thread safe because of the GIL in the CPython implementation. Is the lock that slow that you require a lockless implementation like this?

alexferl avatar Apr 24 '24 02:04 alexferl