SortedSet NIF is a performant and reliable sorted set data structure for Elixir, implemented in Rust using the Rustler crate to take advantage of native performance while maintaining seamless integration with the BEAM ecosystem. It provides ordering and uniqueness guarantees, with all terms stored according to Elixir’s built-in sorting rules. Internally, it uses a vector of vectors layout rather than a single vector to minimize costly reallocations, allowing efficient bucket pointer copying instead of expensive term copying during growth. This design achieves a balance between performance and simplicity, and developers can customize bucket sizes for specific workloads, with a default of 500 offering solid performance across common scenarios. SortedSet extends beyond traditional set semantics by providing indexing, random access, and slice operations thanks to its deterministic ordering.

Features

  • SortedSet implementation following Elixir sorting rules
  • Guarantees uniqueness (no duplicate items)
  • Supports index reporting when adding/removing items
  • Provides random access to items and slices
  • Optimized with Rustler crate for high-performance NIF integration
  • Customizable bucket sizes for performance tuning

Project Samples

Project Activity

See All Activity >

Categories

Data Management

License

MIT License

Follow Discord.SortedSet

Discord.SortedSet Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Discord.SortedSet!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Elixir, Rust

Related Categories

Rust Data Management System, Elixir Data Management System

Registered

2025-09-27