Skip to content

Glossary: System Design Beyond the Basics in C++

std::partial_sort

Also written: partial_sort

A C++ function that puts only the first few places in order and leaves the rest unsorted. The feed uses it to rank 20 posts without sorting thousands.

Where the book teaches it

Related terms

Ranking