
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
tiny-linked-queue
Advanced tools
A tiny queue(first-in, first-out) implemented by linked-list.
enqueue and dequeue operation implemented by linked-list has O(1) time-complex, faster than Array.prototype.shift which costs O(n).
npm install -D tiny-linked-queue
const Qeueue = require('tiny-linked-queue')
const q = new Qeueue()
q.enqueue('foo')
q.enqueue('bar')
q.enqueue('baz')
q.dequeue() // => 'foo'
q.dequeue() // => 'bar'
q.dequeue() // => 'baz'
declare class Queue<ValueType> {
/**
* size of the queue.
*/
readonly size: number;
/**
* check the queue is empty.
*/
readonly isEmpty: boolean;
/**
* return the first element of the queue.
*/
readonly head: ValueType | undefined;
/**
* return the last element of the queue.
*/
readonly tail: ValueType | undefined;
/**
* constructor.
*/
constructor();
/**
* enqueue.
*/
enqueue(value: ValueType): void;
/**
* dequeue.
*/
dequeue(): ValueType | undefined;
/**
* clear the queue.
*/
clear(): void;
}
export = Queue;
node performance.js
sample output:
testing performance between linked-queue and native-array,
by execute one hundred thousand enqueue and dequeue operation
...
native-array costs:
11388 ms
linked-queue costs:
19 ms
yarn test
FAQs
A tiny queue implemented by linked-list
We found that tiny-linked-queue demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.