Closed Chocobozzz closed 5 years ago
-1. I don't think it's worth the added dependency and complexity.
In normal circumstances the pending queue is not going to be large and if the pool/database cannot keep up with inbound requests then it will grow indefinitely anyway. Speeding up the queue operations won't stop that as the core slow down would be from the query execution itself.
Good point :+1:
I think it’s worth it, but that removeFromDenque
doesn’t look like it would work.
I can try to fix this if maintainers of the repository are interested in this PR :)
Because
shift()
could be expensive when the pending queue is big