Container.DefaultCollect

aliases to the correct Default allocator depending on how big the type is. It makes less sense to use a GCChunk allocator if the type is going to be larger than a page (currently there is no way to get the page size from the GC, so we assume 4096 bytes). If not more than one unit can fit into a page, then we use the default GC allocator.

Members

Aliases

DefaultCollect
alias DefaultCollect = Collect!(T)
Undocumented in source.
DefaultCollect
alias DefaultCollect = GCChunk!(T, (4095 - ((void*).sizeof * 3) - uint.sizeof) / (T).sizeof)
Undocumented in source.

Meta