Facebook posts its internal C++ software library

02.06.2012

Even if developers don't plan on using Facebook developed applications, they should still take a look at this library, as it includes many utilities of possible to use in other environments, DeLong said. Many of the components available in Folly run more quickly than their equivalents available elsewhere, he boasted. "Our motivation was to build components that were faster and more efficient than what we previously used," he wrote. These utilities were designed to be used in heavy production environments, across thousands of servers.

The components cover a range of functionality. One component was designed to use memory more efficiently. Another reduces contention. The AtomicHashMap utility cuts the amount of time a piece of data in memory is locked by an operation, which can slow performance and cause bottlenecks in heavily used environments. A set of string manipulation components use fewer CPU cycles than formatters in other C++ libraries, DeLong boasted.

The Folly library is posted on GitHub, and Facebook will add new components as they are written, according to DeLong.

The IDG News Service