folly/PaddedSequence.h
Summary:
Code that aids in storing data aligned on block (possibly cache-line)
boundaries, perhaps with padding. There's class Node which represents one
block, and Iterator which, given an iterator to a container of Nodes, gives you
an iterator to the underlying elements. There's also Adaptor, which converts a
sequence of Node into a sequence of underlying elements. (with enough
functionality to make it useful, although it's not fully STL compatible)
Split off from https://phabricator.fb.com/
D641114
Also includes changes to make TypedIOBuf container-like so it can be used with padded_sequence::Adaptor.
I plan to rename this to Padded.h / folly::padded in a separate diff.
Test Plan: test added
Reviewed By: soren@fb.com
FB internal diff:
D646249