Analysis updated 2026-06-20
Use high-performance data structures and utilities in a C++ codebase where the standard library is too slow under heavy load
Link Folly as a dependency when building a project that requires other Meta open-source C++ libraries
Replace a slow standard library container with a Folly equivalent optimized for high-throughput production systems
| facebook/folly | dragonflydb/dragonfly | freecad/freecad | |
|---|---|---|---|
| Stars | 30,362 | 30,444 | 30,774 |
| Language | C++ | C++ | C++ |
| Setup difficulty | hard | moderate | easy |
| Complexity | 4/5 | 4/5 | 3/5 |
| Audience | developer | ops devops | general |
Figures from each repo's GitHub metadata at analysis time.
Building from source requires CMake, a C++20-compatible compiler, and multiple system dependencies, the build process takes significant time.
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.
Folly is Meta's open-source C++ library of high-performance data structures, algorithms, and utilities that fill gaps the C++ standard library doesn't cover when operating at large scale.
Mainly C++. The stack also includes C++.
Setup difficulty is rated hard, with roughly 1h+ to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.