Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

affinity_partitioner Class

The affinity_partitioner class is similar to the static_partitioner class, but it improves cache affinity by its choice of mapping subranges to worker threads. It can improve performance significantly when a loop is re-executed over the same data set, and the data fits in cache. Note that the same affinity_partitioner object must be used with subsequent iterations of a parallel loop that is executed over a particular data set, to benefit from data locality.

class affinity_partitioner;

Name

Description

affinity_partitioner::affinity_partitioner Constructor

Constructs an affinity_partitioner object.

affinity_partitioner::~affinity_partitioner Destructor

Destroys an affinity_partitioner object.

affinity_partitioner

Header: ppl.h

Namespace: concurrency

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.