keep
keep[T: AnyType, origin: Origin[mut=origin.mut], //](ref[origin] value: T)
Provides a hint to the compiler to not optimize the variable use away.
This is useful in benchmarking to avoid the compiler not deleting the code to be benchmarked because the variable is not used in a side-effecting manner.
Parameters:
Args:
- value (
T): The value to not optimize away.