{"id":15295019,"url":"https://github.com/rufflewind/index_queue","last_synced_at":"2025-03-24T17:43:48.233Z","repository":{"id":62440844,"uuid":"86497572","full_name":"Rufflewind/index_queue","owner":"Rufflewind","description":"A queue for unique indices with constant-time lookup and removal backed by Vec","archived":false,"fork":false,"pushed_at":"2021-06-06T08:14:47.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T12:24:43.099Z","etag":null,"topics":["data-structure","queue","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rufflewind.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-28T19:11:38.000Z","updated_at":"2021-06-06T08:15:15.000Z","dependencies_parsed_at":"2022-11-01T21:53:42.704Z","dependency_job_id":null,"html_url":"https://github.com/Rufflewind/index_queue","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rufflewind%2Findex_queue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rufflewind%2Findex_queue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rufflewind%2Findex_queue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rufflewind%2Findex_queue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rufflewind","download_url":"https://codeload.github.com/Rufflewind/index_queue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245320013,"owners_count":20596088,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-structure","queue","rust"],"created_at":"2024-09-30T17:08:18.848Z","updated_at":"2025-03-24T17:43:48.207Z","avatar_url":"https://github.com/Rufflewind.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `index_queue`\n\n[![Documentation](https://docs.rs/index_queue/badge.svg)](https://docs.rs/index_queue)\n[![Crates.io](https://img.shields.io/crates/v/index_queue.svg)](https://crates.io/crates/index_queue)\n[![Build Status](https://github.com/Rufflewind/index_queue/actions/workflows/build.yml/badge.svg)](https://github.com/Rufflewind/index_queue/actions/workflows/build.yml)\n\nA queue for unique indices (integers) with O(1) push/pop and O(1) lookup/removal.  It is a doubly-linked list with all its nodes stored inside a single Vec.  The queue is most memory efficient when the integers are relatively small and densely packed.  The implementation is similar to [`ixlist`](https://github.com/bluss/ixlist), but `index_queue` is more specialized: it allows querying whether an index already exists as well as removal by index, but does not allow duplicate indices.\n\nThe queue works well with indices obtained from array-based allocators such as [`vec_arena`](https://crates.io/crates/vec-arena) or [`slab`](https://crates.io/crates/slab).\n\nThis crate was originally created to implement a cooperative FIFO task scheduler ([`synchrotron`](https://github.com/Rufflewind/synchrotron)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frufflewind%2Findex_queue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frufflewind%2Findex_queue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frufflewind%2Findex_queue/lists"}