awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
apple avatar

apple/swift-collections

0
View on GitHub↗
4,438 stars·390 forks·Swift·Apache-2.0·7 views

Swift Collections

This library provides a collection of specialized data structures for the Swift language that extend the standard library with advanced container types. It includes implementations for double-ended queues using ring-buffers, priority queues based on min-max heaps, and memory-efficient bit-set and bit-array storage for boolean values.

The project features ordered collections that maintain elements in sorted order via B-tree implementations, as well as persistent sets and dictionaries that use compressed prefix trees to share data between mutated copies. It also provides specialized containers that preserve insertion order.

The library covers a range of capabilities including low-level memory management for C buffers and noncopyable values, fixed-capacity storage, and the use of robin hood hashing to optimize memory utilization and lookup speeds.

Features

  • High-Performance Containers - Provides a comprehensive suite of high-performance Swift data structures, including priority queues and deques.
  • Swift Collection Libraries - Provides a comprehensive suite of specialized data structures and advanced container types for the Swift language.
  • Persistent Collections - Implements persistent collections using compressed prefix trees to share data between mutated copies.
  • Priority Queues - Implements priority queues using a min-max heap backed by an array for efficient priority-based retrieval.
  • Insertion-Order Maps - Provides specialized set and dictionary variants that preserve the original sequence of inserted elements.
  • B-Tree - Implements B-tree based sorted sets and dictionaries for logarithmic search and mutation performance.
  • Persistent - Ships persistent sets and dictionaries based on compressed prefix trees for efficient data sharing.
  • C Memory Management - Provides low-level memory management for C buffers to enable safe data exchange with system components.
  • Noncopyable Value Wrappers - Implements heap-allocated wrappers to manage the memory and ownership of noncopyable Swift values.
  • Low-Level Swift Memory Management - Handles C buffers and noncopyable values to safely manage heap allocation and system interoperability.
  • Double-Ended Queues - Implements double-ended queues using a ring-buffer to provide constant-time insertions and removals from both ends.
  • Ordered Collections - Provides sequential data structures that maintain element order and support integer-based indexing.
  • Persistent Data Structures - Implements collections and containers that preserve previous versions through structural sharing to ensure immutability.
  • Sorted Collection Libraries - Offers collection types that maintain elements in strictly increasing order via B-tree implementations.
  • Priority Queues - Provides a priority queue implementation based on a min-max heap for rapid retrieval of extremum values.
  • Noncopyable Value Wrappers - Wraps noncopyable values in heap-allocated containers to manage their memory and ownership.
  • Fixed-Capacity Containers - Provides arrays, sets, and dictionaries with strictly defined maximum capacities.
  • Robin Hood Hashing - Uses a robin hood hashing strategy in hashed containers to optimize memory utilization and lookup speeds.
  • Memory Optimization Strategies - Optimizes memory utilization and lookup stability using hashed containers with a robin hood distribution strategy.
  • In-Memory B-Trees - Ships sorted sets and dictionaries powered by a B-tree implementation for efficient in-memory lookups.
  • Memory Efficiency Strategies - Implements bit maps and specialized hashed containers to reduce memory overhead in Swift applications.
  • Bit-Packed Storage - Provides memory-efficient bit-set and bit-array implementations for optimizing boolean storage.

Star history

Star history chart for apple/swift-collectionsStar history chart for apple/swift-collections

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Swift Collections

Similar open-source projects, ranked by how many features they share with Swift Collections.
  • google/btreegoogle avatar

    google/btree

    4,166View on GitHub↗

    This is an in-memory B-Tree data structure implementation for Go. It provides a memory-resident collection that maintains sorted elements to enable efficient retrieval, modification, and the management of sorted key-value maps. The project supports ordered mutable collections and sorted key-value stores, allowing for fast lookups, insertions, and deletions while preserving the sort order of keys. It provides capabilities for range searching within sorted memory structures and maintains the organization of datasets through self-balancing node splitting and recursive binary search.

    Go
    View on GitHub↗4,166
  • xtaci/algorithmsxtaci avatar

    xtaci/algorithms

    5,454View on GitHub↗

    This is a collection of classical algorithms and data structures implemented as a header-only C++ library. It provides a suite of tools for general algorithm implementation, including data structure management, graph theory analysis, and string processing. The library is distinguished by its specialized toolkits for cryptographic hashing and encoding, featuring implementations of MD5, SHA-1, and Base64. It also includes advanced capabilities for high-performance string processing via suffix trees and arrays, as well as computational number theory for primality testing and arbitrary-precision

    C++
    View on GitHub↗5,454
  • workiva/go-datastructuresWorkiva avatar

    Workiva/go-datastructures

    7,901View on GitHub↗

    go-datastructures is a collection of thread-safe and lock-free data structures designed for high-performance concurrent applications in Go. It provides a modular library of specialized algorithmic toolsets, including a lock-free collection library and an immutable data structure library. The project distinguishes itself through a suite of persistent AVL trees and hash array mapped tries that use branch-copying to preserve previous versions. It also implements non-blocking hash maps, queues, and tries that enable linearizable snapshots and concurrent updates without the use of mutual exclusion

    Go
    View on GitHub↗7,901
  • oi-wiki/oi-wikiOI-wiki avatar

    OI-wiki/OI-wiki

    26,176View on GitHub↗

    This project is a comprehensive, community-maintained knowledge base and toolkit designed for competitive programming. It serves as a centralized repository for algorithmic theory, data structures, and mathematical techniques, providing a structured reference for informatics and collegiate programming competitions. The project distinguishes itself by integrating educational content with a robust suite of automation utilities. It provides a complete workflow for competitive programming, including tools for automated test case generation, solution verification, and direct interaction with onlin

    TypeScriptacm-icpcacm-icpc-handbookalgorithms
    View on GitHub↗26,176
See all 30 alternatives to Swift Collections→

Frequently asked questions

What does apple/swift-collections do?

This library provides a collection of specialized data structures for the Swift language that extend the standard library with advanced container types. It includes implementations for double-ended queues using ring-buffers, priority queues based on min-max heaps, and memory-efficient bit-set and bit-array storage for boolean values.

What are the main features of apple/swift-collections?

The main features of apple/swift-collections are: High-Performance Containers, Swift Collection Libraries, Persistent Collections, Priority Queues, Insertion-Order Maps, B-Tree, Persistent, C Memory Management.

What are some open-source alternatives to apple/swift-collections?

Open-source alternatives to apple/swift-collections include: google/btree — This is an in-memory B-Tree data structure implementation for Go. It provides a memory-resident collection that… xtaci/algorithms — This is a collection of classical algorithms and data structures implemented as a header-only C++ library. It provides… workiva/go-datastructures — go-datastructures is a collection of thread-safe and lock-free data structures designed for high-performance… oi-wiki/oi-wiki — This project is a comprehensive, community-maintained knowledge base and toolkit designed for competitive programming.… awangdev/leet-code — This project is a curated reference library of algorithmic patterns, data structure implementations, and system design… vavr-io/vavr.