1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
| #### `Arena.h`, `ThreadCachedArena.h`
Simple arena for memory allocation: multiple allocations get freed all
at once. With threaded version.
#### [`AtomicHashMap.h`, `AtomicHashArray.h`](AtomicHashMap.md)
High-performance atomic hash map with almost lock-free operation.
#### [`Benchmark.h`](Benchmark.md)
A small framework for benchmarking code. Client code registers
benchmarks, optionally with an argument that dictates the scale of the
benchmark (iterations, working set size etc). The framework runs
benchmarks (subject to a command-line flag) and produces formatted
output with timing information.
#### `Bits.h`
Various bit manipulation utilities optimized for speed.
#### `Bits.h`
Bit-twiddling functions that wrap the
[ffsl(l)](<a href="http://linux.die.net/man/3/ffsll" target="_blank">http://linux.die.net/man/3/ffsll</a>) primitives in a uniform
interface.
#### `ConcurrentSkipList.h`
An implementation of the structure described in [A Provably Correct
Scalable Concurrent Skip
List](<a href="http://www.cs.tau.ac.il/~shanir/nir-pubs-web/Papers/OPODIS2006-BA.pdf" target="_blank">http://www.cs.tau.ac.il/~shanir/nir-...DIS2006-BA.pdf</a>)
by Herlihy et al.
#### [`Conv.h`](Conv.md)
A variety of data conversion routines (notably to and from string),
optimized for speed and safety.
#### `DiscriminatedPtr.h`
Similar to `boost::variant`, but restricted to pointers only. Uses the
highest-order unused 16 bits in a pointer as discriminator. So
`sizeof(DiscriminatedPtr<int, string, Widget>) == sizeof(void*)`.
#### [`dynamic.h`](Dynamic.md)
Dynamically-typed object, created with JSON objects in mind.
#### `Endian.h`
Endian conversion primitives.
####`Escape.h`
Escapes a string in C style.
####`eventfd.h`
Wrapper around the
[`eventfd`](<a href="http://www.kernel.org/doc/man-pages/online/pages/man2/eventfd.2.html" target="_blank">http://www.kernel.org/doc/man-pages/...eventfd.2.html</a>)
system call.
####[`FBString.h`](FBString.md)
A drop-in implementation of `std::string` with a variety of optimizations.
####[`FBVector.h`](FBVector.md)
A mostly drop-in implementation of `std::vector` with a variety of
optimizations.
####`Foreach.h`
Pseudo-statements (implemented as macros) for iteration.
####[`Format.h`](Format.md)
Python-style formatting utilities.
####[`GroupVarint.h`](GroupVarint.md)
[Group Varint
encoding](<a href="http://www.ir.uwaterloo.ca/book/addenda-06-index-compression.html" target="_blank">http://www.ir.uwaterloo.ca/book/adde...mpression.html</a>)
for 32-bit values.
####`Hash.h`
Various popular hash function implementations.
####[`Histogram.h`](Histogram.md)
A simple class for collecting histogram data.
####`IntrusiveList.h`
Convenience type definitions for using `boost::intrusive_list`.
####`json.h`
JSON serializer and deserializer. Uses `dynamic.h`.
####`Likely.h`
Wrappers around [`__builtin_expect`](<a href="http://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html" target="_blank">http://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html</a>).
####`Malloc.h`
Memory allocation helpers, particularly when using jemalloc.
####`MapUtil.h`
Helpers for finding items in associative containers (such as
`std::map` and `std::unordered_map`).
####[`PackedSyncPtr.h`](PackedSyncPtr.md)
A highly specialized data structure consisting of a pointer, a 1-bit
spin lock, and a 15-bit integral, all inside one 64-bit word.
####`Preprocessor.h`
Necessarily evil stuff.
####`PrettyPrint.h`
Pretty-printer for numbers that appends suffixes of unit used: bytes
(kb, MB, ...), metric suffixes (k, M, G, ...), and time (s, ms, us,
ns, ...).
####[`ProducerConsumerQueue.h`](ProducerConsumerQueue.md)
Lock free single-reader, single-writer queue.
####`Random.h`
Defines only one function---`randomNumberSeed()`.
####`Range.h`
Boost-style range facility and the `StringPiece` specialization.
####`RWSpinLock.h`
Fast and compact reader-writer spin lock.
####`ScopeGuard.h`
C++11 incarnation of the old [ScopeGuard](<a href="http://drdobbs.com/184403758" target="_blank">http://drdobbs.com/184403758</a>) idiom.
####[`SmallLocks.h`](SmallLocks.md)
Very small spin locks (1 byte and 1 bit).
####`small_vector.h`
Vector with the small buffer optimization and an ptional embedded
`PicoSpinLock`.
####`sorted_vector_types.h`
Collections similar to `std::map` but implemented as sorted vectors.
####`StlAllocator.h`
STL allocator wrapping a simple allocate/deallocate interface.
####`String.h`
String utilities that connect `folly::fbstring` with `std::string`.
####[`Synchronized.h`](Synchronized.md)
High-level synchronization library.
####`System.h`
Demangling and errno utilities.
####[`ThreadCachedInt.h`](ThreadCachedInt.md)
High-performance atomic increment using thread caching.
####[`ThreadLocal.h`](ThreadLocal.md)
Improved thread local storage for non-trivial types.
####`TimeoutQueue.h`
Queue with per-item timeout.
####`Traits.h`
Type traits that complement those defined in the standard C++11 header
`<traits>`.
####`Unicode.h`
Defines the `codePointToUtf8` function. |
Partager