uawdijnntqw1x1x1
IP : 216.73.217.47
Hostname : srv913213
Kernel : Linux srv913213 5.15.0-179-generic #189-Ubuntu SMP Tue May 5 18:20:56 UTC 2026 x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
OS : Linux
PATH:
/
var
/
www
/
yapwebtv.com
/
..
/
talentgenesis_admin_backend
/
node_modules
/
fast-fifo
/
README.md
/
/
# fast-fifo A fast fifo implementation similar to the one powering nextTick in Node.js core ``` npm install fast-fifo ``` Uses a linked list of growing fixed sized arrays to implement the FIFO to avoid allocating a wrapper object for each item. ## Usage ``` js const FIFO = require('fast-fifo') const q = new FIFO() q.push('hello') q.push('world') q.shift() // returns hello q.shift() // returns world ``` ## API #### `q = new FIFO()` Create a new FIFO. #### `q.push(value)` Push a value to the FIFO. `value` can be anything other than undefined. #### `value = q.shift()` Return the oldest value from the FIFO. #### `q.clear()` Remove all values from the FIFO. #### `bool = q.isEmpty()` Returns `true` if the FIFO is empty and false otherwise. #### `value = q.peek()` Return the oldest value from the FIFO without shifting it out. #### `len = q.length` Get the number of entries remaining in the FIFO. ## Benchmarks Included in bench.js is a simple benchmark that benchmarks this against a simple linked list based FIFO. On my machine the benchmark looks like this: ``` fifo bulk push and shift: 2881.508ms fifo individual push and shift: 3248.437ms fast-fifo bulk push and shift: 1606.972ms fast-fifo individual push and shift: 1328.064ms fifo bulk push and shift: 3266.902ms fifo individual push and shift: 3320.944ms fast-fifo bulk push and shift: 1858.307ms fast-fifo individual push and shift: 1516.983ms ``` YMMV ## License MIT
/var/www/yapwebtv.com/../talentgenesis_admin_backend/node_modules/fast-fifo/README.md