FleCSI User API Version: 2.3.0
 
Loading...
Searching...
No Matches
resize::policy Struct Reference

A heuristic for automatically resizing a partition. More...

Public Member Functions

 policy (std::size_t m=0, std::size_t e=0, float l=0, float h=1, float s=0)
 Specify a policy.
 

Detailed Description

A heuristic for automatically resizing a partition.

Each new size is derived from the current size and amount of it used.

Note
Reducing the size may reduce data movement, but does not by itself release memory.

Constructor & Destructor Documentation

◆ policy()

policy ( std::size_t  m = 0,
std::size_t  e = 0,
float  l = 0,
float  h = 1,
float  s = 0 
)

Specify a policy.

The defaults always maintain the current size. The floating-point parameters control geometric reallocation.

Parameters
mthe minimum size to use
ethe minimum extra space to reserve
lfill fraction threshold for shrinking the size
hfill fraction threshold for increasing the size
shysteresis control on [0,1]: larger values reallocate more frequently for monotonic size changes but less frequently for oscillatory ones