/twoqueue

JS Queue optimized for V8

Primary LanguageJavaScript

Twoqueue

API

Queue with enqueue(), dequeue(), and dequeueMultiple().

Implementation

Two arrays used as stacks. I tested this to be the fastest implementation on V8.