Learn R Programming

shard (version 0.1.0)

shared_advise: Advise access pattern for a shared input vector/matrix

Description

Advise access pattern for a shared input vector/matrix

Usage

shared_advise(
  x,
  advice = c("normal", "sequential", "random", "willneed", "dontneed")
)

Value

A logical scalar; TRUE if the OS accepted the hint.

Arguments

x

A shard shared vector (from share()).

advice

See segment_advise().

Examples

Run this code
# \donttest{
x <- as_shared(1:100)
shared_advise(x, "sequential")
# }

Run the code above in your browser using DataLab