Postgres module

reserve_for

procedure · 1 overloadsince 0.30.0Source

Room for total items, growing by doubling so a long run of small appends copies little.

reserve_for :: (array: *[..] $T, total: s64)

Room for total items, growing by doubling so a long run of small appends copies little.

Parameters

array: *[..] $T
the array to make room in.
total: s64
how many items it should be able to hold.

See also