Build high-performance server applications that handle heavy traffic without standard library bottlenecks.
Use as a dependency for other Meta open-source C++ projects that already require Folly components.
Optimize data structure performance in latency-sensitive systems by swapping standard library alternatives with Folly equivalents.
Access production-tested utilities and abstractions that Facebook engineers rely on at scale.
Requires C++20 compiler and build system setup (CMake or similar); no external dependencies but compilation time varies by platform.
Folly is an open-source C++ library developed and used internally at Facebook (now Meta). It is not a single unified toolkit but rather a collection of independent, reusable C++ components, data structures, algorithms, utilities, and abstractions, that Facebook engineers found useful enough to share publicly. The name is loosely an acronym for "Facebook Open-source Library." The library fills gaps that the C++ standard library and other common libraries like Boost do not cover, or covers them with better performance characteristics suited to operating at large scale. Performance is a central theme throughout: the README notes that some designs are more unconventional than they would be otherwise precisely because they optimize for speed in high-traffic production systems. Folly is written using C++20 features, the current modern version of the C++ language standard. In practice, Folly often appears as a dependency of other Facebook open-source projects that are themselves written in C++, serving as a shared foundation. Individual components in Folly are relatively self-contained, so a project might depend on only a few of them rather than the entire library. A C++ developer would use Folly when they need a data structure or utility that performs better than the standard library alternative under heavy load, or when building software that depends on other Meta open-source projects that already require it. It is built as a static library and supports Linux, macOS, iOS, and Windows.
Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.