Skip to content
RED SAGSkills
easy5 pts · first answer countsstacks-and-queuesjavascript

Cost of Array.shift in a queue

A Node.js worker uses an array as a queue with push() to add and shift() to remove. With 100,000 items waiting, why can this get slow?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions