Follow Us

Facebook publishes internal C++ software library

Facebook's Folly library includes many components tuned to high-performance operations

Facebook has released a library of C++ software components used to help run its site, the social networking company announced yesterday..

By releasing this library, called Folly, Facebook will be able to release more of its internal programs as open source, because they rely on different components in this library.

"One clear bottleneck to releasing more work has been that any open sourced project needed to break dependencies on unreleased internal library code," wrote Facebook software engineer Jordan DeLong, who posted an entry on Facebook announcing the release.

Facebook engineers also announced the release at a C++ conference the company held on Saturday at its campus at Menlo Park, California.

Facebook has relied on open-source software, such as MySQL, PHP and memcached, to run its sites. And so the company has made a point of releasing its own internal programs as open-source software as well, such as the HipHop PHP compiler and the Thrift service sharing framework.

For many of its open source releases though, Facebook developers have had to rewrite some of the functionality that was borrowed from this library. By releasing the library itself, Facebook will be able to "continue open sourcing parts of [its] stack without resorting to reinventing ... internal wheels," DeLong wrote.

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




Comments



Send to a friend

Email this article to a friend or colleague:

PLEASE NOTE: Your name is used only to let the recipient know who sent the story, and in case of transmission error. Both your name and the recipient's name and address will not be used for any other purpose.

Techworld White Papers

Choose – and Choose Wisely – the Right MSP for Your SMB

End users need a technology partner that provides transparency, enables productivity, delivers...

Download Whitepaper

10 Effective Habits of Indispensable IT Departments

It’s no secret that responsibilities are growing while budgets continue to shrink. Download this...

Download Whitepaper

Optimise Performance For Global eCommerce

Global is all the rage: eBusiness teams are feverishly building new international initiatives in...

Download Whitepaper

Gartner Magic Quadrant for Enterprise Information Archiving

Enterprise information archiving is contributing to organisational needs for e-discovery and...

Download Whitepaper

Techworld UK - Technology - Business

Part 2 of your journey to virtualisation

You can still access part 2 of our virtualisation journey - explore how you can improve your servers, storage and networks by developing your infrastructure.

Watch now...
Techworld Mobile Site

Access Techworld's content on the move

Get the latest news, product reviews and downloads on your mobile device with Techworld's mobile site.

Find out more...

From Wow to How : Making mobile and cloud work for you

On demand Biztech Briefing - Learn how to effectively deliver mobile work styles and cloud services together.

Watch now...

Site Map

* *