rust/library/std/src
Amanieu d'Antras 4bc6d75592 Revert #148937 (Remove initialized-bytes tracking from BorrowedBuf and BorrowedCursor)
This caused several performance regressions because of existing code
which uses `Read::read` and therefore requires full buffer
initialization. This is particularly a problem when the same buffer is
re-used for multiple read calls since this means it needs to be fully
re-initialized each time.

There is still some benefit to landing the API changes, but we will have
to add private APIs so that the existing infrastructure can
track and avoid redundant initialization.

(cherry picked from commit 4b07875505)
2025-12-20 13:58:49 -08:00
..
backtrace remove redundant imports 2023-12-10 10:56:22 +08:00
collections Rollup merge of #149204 - winningMove:patch-1, r=chenyukang 2025-11-22 18:41:25 +01:00
ffi Implement some conversions using Box::clone_from_ref 2025-11-19 13:34:03 -06:00
fs Revert #148937 (Remove initialized-bytes tracking from BorrowedBuf and BorrowedCursor) 2025-12-20 13:58:49 -08:00
hash remove const_hash feature leftovers 2024-11-02 11:27:14 +01:00
io Revert #148937 (Remove initialized-bytes tracking from BorrowedBuf and BorrowedCursor) 2025-12-20 13:58:49 -08:00
net Revert #148937 (Remove initialized-bytes tracking from BorrowedBuf and BorrowedCursor) 2025-12-20 13:58:49 -08:00
num powf, powi: point out SNaN non-determinism 2025-12-03 13:35:34 +01:00
os Document Error::{new,other} as to be avoided in pre_exec 2025-11-15 12:30:16 +03:00
prelude Make derive_const usable within libcore again 2025-07-17 15:42:54 +00:00
process Revert #148937 (Remove initialized-bytes tracking from BorrowedBuf and BorrowedCursor) 2025-12-20 13:58:49 -08:00
sync Clarify edge cases for Barrier::new 2025-11-30 17:14:46 +08:00
sys Revert #148937 (Remove initialized-bytes tracking from BorrowedBuf and BorrowedCursor) 2025-12-20 13:58:49 -08:00
sys_common Implement Debug for EncodeWide 2025-09-16 13:11:34 -06:00
thread ThreadId generation fallback path: avoid spurious yields 2025-11-30 22:52:28 +01:00
alloc.rs Auto merge of #144465 - orlp:system-alloc-tls, r=Mark-Simulacrum 2025-11-29 02:08:53 +00:00
ascii.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
backtrace.rs Fix new function_casts_as_integer lint errors in core, std, panic_unwind and compiler crates 2025-11-10 16:38:28 +01:00
bstr.rs Implement ByteStr and ByteString types 2025-01-11 06:35:21 +02:00
env.rs Fix missing double-quote in std::env::consts::OS values 2025-11-24 18:02:24 +01:00
error.rs Move std::error unit tests to integration tests 2025-01-26 10:28:04 +00:00
fs.rs Add missing trailing period to RustDoc for fn create_dir(). 2025-11-19 11:03:00 +01:00
keyword_docs.rs Document fully-qualified syntax in as' keyword doc 2025-10-03 17:31:55 +03:00
lib.miri.rs add 'x.py miri', and make it work for 'library/{core,alloc,std}' 2024-04-03 20:27:20 +02:00
lib.rs replace version placeholder 2025-12-08 10:08:32 +00:00
macros.rs Revert "feat: implement hash_map! macro" 2025-10-23 12:37:53 -07:00
panic.rs Update CURRENT_RUSTC_VERSION post-bump 2025-09-26 18:41:32 -04:00
panicking.rs Show backtrace on allocation failures when possible 2025-11-26 14:02:37 +00:00
pat.rs Add pattern types to parser 2024-04-08 11:57:17 +00:00
path.rs Implement some conversions using Box::clone_from_ref 2025-11-19 13:34:03 -06:00
process.rs Add Command::get_env_clear 2025-11-18 19:37:52 -06:00
random.rs random: Provide a Distribution<T> trait 2025-07-11 10:21:34 -07:00
rt.rs remember the main thread ID before performing platform initialisation 2025-12-02 18:03:33 +01:00
test_helpers.rs std: get rid of sys_common::io 2025-02-07 16:54:07 +01:00
time.rs Fix documentation of Instant::now on mac 2025-10-10 20:01:03 +01:00