Rudy
Judy array implementation in pure Rust
Install / Use
/learn @adevore/RudyREADME
Rudy
Rudy is a Judy array implementation in Rust. Judy arrays are highly efficient word-to-word or word-to-bool maps that adapt well to different data. The reference Judy array implementation provides a word to word map (JudyL), set of words (Judy1), string to word (JudySL) and fixed length byte array to word map (JudyHS). Judy arrays use a compressed 256-radix trie.
The initial Rudy implementation will implement JudyL as RudyMap and Judy1 as RudySet. Because zero sized types can be represented by a RudyMap, it will be trivial to represent RudySet<T> as a wrapper around a RudyMap<T, ()>. Future iterations may include JudySL and JudyHS support.
Differences between Judy and Rudy
Rudy appears to be the first implementation to use generics in the core library. The judy-template bindings for C++ allow for automatic conversion to and from words, but not use of values that need larger storage. Using generics allows for lower memory usage for smaller types and the usage of larger types, with possible impact to performance.
Status
- [x] General library structure
- [x] Top-level root nodes
- [x] Leaf1
- [x] Leaf2
- [x] VecLeaf
- [ ] JPM
- [ ] Linear Leaf
- [x] Bitmap Leaf
- [x] Bitmap Branch
- [x] Linear Branch
- [x] Uncompressed Branch
- [x] Insertion
- [x] Get
- [x] Remove
- [x] Memory used
- [ ] Shrink
- [ ] Iterators
License
Rudy is dual licensed under the MIT and Apache-2.0 licenses.
Related Skills
himalaya
351.4kCLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).
node-connect
351.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
taskflow
351.4kname: taskflow description: Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layer
frontend-design
110.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
