I gave a quick try to this in cython but didn't want to lose too much time in it. My issue was that the ClosureQueue class needs the gil for its init method. You could create them before releasing the gil, but accessing an element in a list requires the gil and I wasn't able to get C vectors to work.
I gave a quick try to this in cython but didn't want to lose too much time in it. My issue was that the ClosureQueue class needs the gil for its init method. You could create them before releasing the gil, but accessing an element in a list requires the gil and I wasn't able to get C vectors to work.