attaswift/BTree
Fast sorted collections for Swift using in-memory B-trees observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3915
- days_rel: n/a
- days_push: 1652
- n_releases_24m: 0
Adoption not part of the score
1323 stars · 73 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A pure Swift library providing efficient in-memory B-tree implementations and sorted collection types like Map, List, SortedSet, and SortedBag. It offers logarithmic-complexity alternatives to Swift's standard Dictionary, Array, and Set with strong worst-case performance guarantees.
Use cases
- sorted dictionary in Swift without hashable keys
- fast insertion and removal at arbitrary indices in a list
- sorted set with efficient set operations
- sorted multiset (bag) implementation
- persistent ordered collections with O(log n) operations
When to choose
- you need sorted collections with guaranteed logarithmic worst-case performance in Swift
- your keys are comparable but not hashable
- you frequently concatenate, splice, or extract subranges of large lists
When to avoid
- you only need simple dictionaries or arrays with typical small data sizes
- you need actively maintained dependencies with recent Swift concurrency support
- you require on-disk or database-backed B-trees rather than in-memory structures
Facets
library · maturity maintenance
search-engine developer-tools performance cross-platform btree sorted-collections swift-package data-structures algorithms macos ios swift
1 source
- readme: https://github.com/attaswift/BTree · fetched 2026-08-28 · 031ba9606649
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| attaswift/BTree | main | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem