Skip to content

Aurora-creeper/sortao

Repository files navigation

SortAO

SortAO is a fast, zero-dependency sorted container suite for JavaScript & TypeScript!

We provides 4 advanced wrappers out of the box:

  • SortedMap, SortedSet, SortedMultimap, SortedMultiset

These wrappers can replace the underlying data structure to adapt to different performance patterns.

  • Flat: SortedBlockArray (default), SortedBlockList, SortedBlockDeque
  • Tree: SplayTree

Installation

npm i sortao

Usage

Full documentation is available at sortao.com.

import { SortedSet } from "sortao";

Coverage

See coverage.sortao.com

We have provided approximately 500 test cases, including large-scale stress tests.

You may clone the repository and manually run pnpm test or pnpm coverage.

Benchmarks

Partial benchmarks and analyses can be found in the document.

You may clone the repository and manually run pnpm bench.

License

MIT

About

Your sorted container suite (•ᴗ•)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages