lenmom

博客园 首页 新随笔 联系 订阅 管理

2018年7月24日 #

摘要: folly/Synchronized.h folly/Synchronized.h introduces a simple abstraction for mutex- based concurrency. It replaces convoluted, unwieldy, and just pla 阅读全文
posted @ 2018-07-24 14:40 老董 阅读(599) 评论(0) 推荐(0)

摘要: folly/Conv.h folly/Conv.h is a one-stop-shop for converting values across types. Its main features are simplicity of the API (only the names to and to 阅读全文
posted @ 2018-07-24 13:49 老董 阅读(668) 评论(0) 推荐(0)

摘要: folly/Poly.h Poly is a class template that makes it relatively easy to define a type-erasing polymorphic object wrapper. Type-erasure std::function is 阅读全文
posted @ 2018-07-24 13:20 老董 阅读(583) 评论(0) 推荐(0)

摘要: folly/ Components Below is a list of (some) Folly components in alphabetical order, along with a brief description of each. Arena.h, ThreadCachedArena 阅读全文
posted @ 2018-07-24 13:14 老董 阅读(445) 评论(0) 推荐(0)

摘要: folly/dynamic.h folly/dynamic.h provides a runtime dynamically typed value for C++, similar to the way languages with runtime type systems work (e.g. 阅读全文
posted @ 2018-07-24 13:13 老董 阅读(1093) 评论(0) 推荐(0)

摘要: folly/PackedSyncPtr.h A highly specialized data structure consisting of a pointer, a 1-bit spin lock, and a 15-bit integral packed into sizeof(void*). 阅读全文
posted @ 2018-07-24 13:10 老董 阅读(181) 评论(0) 推荐(0)

摘要: 'folly/Traits.h' Implements traits complementary to those provided in <type_traits> Implements IsRelocatable trait. Implements IsOneOf trait Macros to 阅读全文
posted @ 2018-07-24 13:06 老董 阅读(633) 评论(0) 推荐(0)

摘要: folly/SmallLocks.h This module is currently x64 only. This header defines two very small mutex types. These are useful in highly memory-constrained en 阅读全文
posted @ 2018-07-24 13:02 老董 阅读(232) 评论(0) 推荐(0)

摘要: folly/ThreadCachedInt.h High-performance atomic increment using thread caching. folly/ThreadCachedInt.h introduces a integer class designed for high p 阅读全文
posted @ 2018-07-24 13:01 老董 阅读(151) 评论(0) 推荐(0)

摘要: folly/ThreadLocal.h Improved thread local storage for non-trivial types. ~4x faster than boost::thread_specific_ptr. Similar speed as using pthread_ge 阅读全文
posted @ 2018-07-24 13:00 老董 阅读(174) 评论(0) 推荐(0)

摘要: folly/small_vector.h folly::small_vector<T,Int=1,...> is a sequence container that implements small buffer optimization. It behaves similarly to std:: 阅读全文
posted @ 2018-07-24 12:58 老董 阅读(423) 评论(0) 推荐(0)

摘要: folly/Histogram.h Classes Histogram Histogram.h defines a simple histogram class, templated on the type of data you want to store. This class is usefu 阅读全文
posted @ 2018-07-24 12:57 老董 阅读(538) 评论(0) 推荐(0)

摘要: folly/GroupVarint.h folly/GroupVarint.h is an implementation of variable-length encoding for 32- and 64-bit integers using the Group Varint encoding s 阅读全文
posted @ 2018-07-24 12:55 老董 阅读(213) 评论(0) 推荐(0)

摘要: folly/Format.h folly/Format.h provides a fast, powerful, type-safe, flexible facility for formatting text, using a specification language similar to P 阅读全文
posted @ 2018-07-24 12:54 老董 阅读(753) 评论(0) 推荐(0)

摘要: folly/DynamicConverter.h When dynamic objects contain data of a known type, it is sometimes useful to have its well-typed representation. A broad set 阅读全文
posted @ 2018-07-24 12:52 老董 阅读(289) 评论(0) 推荐(0)

摘要: Thread pools & Executors Run your concurrent code in a performant way All about thread pools # How do I use the thread pools? # Wangle provides two co 阅读全文
posted @ 2018-07-24 12:50 老董 阅读(435) 评论(0) 推荐(0)

摘要: Futures is a framework for expressing asynchronous code in C++ using the Promise/Future pattern. Overview Folly Futures is an async C++ framework insp 阅读全文
posted @ 2018-07-24 12:14 老董 阅读(717) 评论(0) 推荐(0)

摘要: folly/Function.h folly::Function is a polymorphic function wrapper that is not copyable and does not require the wrapped function to be copy construct 阅读全文
posted @ 2018-07-24 12:06 老董 阅读(383) 评论(0) 推荐(0)

摘要: folly/FBString.h fbstring is a drop-in replacement for std::string. The main benefit of fbstring is significantly increased performance on virtually a 阅读全文
posted @ 2018-07-24 11:51 老董 阅读(365) 评论(0) 推荐(0)

摘要: folly/FBVector.h Simply replacing std::vector with folly::fbvector (after having included the folly/FBVector.h header file) will improve the performan 阅读全文
posted @ 2018-07-24 11:50 老董 阅读(429) 评论(0) 推荐(0)