about summary refs log tree commit diff
path: root/library/std/src/alloc.rs
diff options
context:
space:
mode:
authorAdam Reichold <adam.reichold@t-online.de>2020-08-01 14:29:42 +0200
committerAdam Reichold <adam.reichold@t-online.de>2020-08-05 16:57:02 +0200
commit6672f7be032e1fc392cb0e2a785563b82b095117 (patch)
tree08dca229b01199c73fd8dac32927a5e187de980f /library/std/src/alloc.rs
parent94687525815cb2138779e17a766e24c826819d7c (diff)
downloadrust-6672f7be032e1fc392cb0e2a785563b82b095117.tar.gz
rust-6672f7be032e1fc392cb0e2a785563b82b095117.zip
Memoize the I/O vector count limit
Keep the I/O vector count limit in a `SyncOnceCell` to avoid the overhead of
repeatedly calling `sysconf` as these limits are guaranteed to not change during
the lifetime of a process by POSIX.
Diffstat (limited to 'library/std/src/alloc.rs')
0 files changed, 0 insertions, 0 deletions