ls lib/ruby/
Ruby
CRuby's hash table and sorts.
- draft How Ruby sorts: qsort_r, a private introsort and quickselectIn ruby 4.0.10, sort hands the work to the C library, sort_by on numbers runs its own introsort, and max_by(n) runs a quickselect. None of them promises stability.
- draft How Ruby's Hash works: st_table, open addressing and ar_tableWhat ruby 4.0.10 builds when you write {}: a flat array for up to eight entries, an open-addressing table with a separate entries array after that, seeded integer hashes, and why tally hashes each key once.