Displaying 1 to 5 from 5 results

SwiftPriorityQueue - A Generic Priority Queue in Pure Swift

  •    Swift

SwiftPriorityQueue is a pure Swift (no Cocoa) implementation of a generic priority queue data structure, appropriate for use on all platforms (macOS, iOS, Linux, etc.) where Swift is supported. It features a straightforward interface and can be used with any type that implements Comparable. It utilizes comparisons between elements rather than separate numeric priorities to determine order. Internally, SwiftPriorityQueue uses a classic binary heap, resulting in O(lg n) pushes and pops. It includes in-source documentation, an A* based example maze solving program (for macOS), and unit tests (pull requests are welcome for additional unit tests in particular).

p-queue - Promise queue with concurrency control

  •    Javascript

Useful for rate-limiting async operations. For example, when interacting with a REST API or when doing CPU/memory intensive tasks.Here we run only one promise at the time. For example, set concurrency to 4 to run four promises at the time.

TypeScript-STL - The Standard TypeScript/JavaScript Library

  •    HTML

The Standard JavaScript/TypeScript Library (STL) is a collection of interfaces and classes that are meant to solve common problems. STL provides a set of standard datastructures. They are grouped here by their underlying implementation which usually defines their general field of application.

es-collections - An ES6/ES2015 (JavaScript) collections library including Stack, Queue, and PriorityQueue

  •    Javascript

es-collections is an ES6/ES2015 (JavaScript) collections library including Stack, Queue, and PriorityQueue data structures. Map and Set were added in ES2015. This library adds other frequently used collections with an interface consistent with those additions.