Snapshot memory, host lists and send memory kept for reuse (VICTORY_SNAPSHOT_POOL=8: as before)

Made anew and given back all the time: 30 % of the submitting thread in the opening (profile cpu-1: allocations of snapshots 11, preludes 12, lists dropped 5, send memory 3).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-25 03:50:04 -06:00
1 parent 74005234a2
commit d4943c43fb
3 files changed
+40 -17

No files matched your search

+5 -2
View File
@@ -218,11 +218,14 @@ unsafe impl Send for Idle {}
#[cfg(windows)]
static IDLE: std::sync::Mutex<(Vec<Idle>, u64)> = std::sync::Mutex::new((Vec::new(), 0));
/// The most host lists kept idle, and the most upload memory they may keep
/// The most host lists kept idle (128 were too few: flights land several at
/// a time, so lists were thrown away and others made in the same frame, with
/// their preludes and buffers, 12 % of the submitting thread in the opening,
/// profile cpu-1), and the most upload memory they may keep
/// between them (a list keeps scratch chunks over a reset only while lists
/// do not share them, `VICTORY_SCRATCH_POOL=0`).
#[cfg(windows)]
const IDLE_MOST: (usize, u64) = (128, 256 << 20);
const IDLE_MOST: (usize, u64) = (512, 256 << 20);
/// Whether host lists that have run are used again (on by default;
/// `VICTORY_LIST_POOL=0`: each is made new and thrown away, as before).