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
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
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