diff options
| author | Adam Reichold <adam.reichold@t-online.de> | 2020-08-01 14:29:42 +0200 |
|---|---|---|
| committer | Adam Reichold <adam.reichold@t-online.de> | 2020-08-05 16:57:02 +0200 |
| commit | 6672f7be032e1fc392cb0e2a785563b82b095117 (patch) | |
| tree | 08dca229b01199c73fd8dac32927a5e187de980f /library/std/src/alloc.rs | |
| parent | 94687525815cb2138779e17a766e24c826819d7c (diff) | |
| download | rust-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
