Skip to content

Commit

Permalink
Decrease collector block size so a block fits into exactly four 64-by…
Browse files Browse the repository at this point in the history
…tes-long cache lines.
  • Loading branch information
adamreichold committed May 19, 2024
1 parent 32b4813 commit 49647ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gil.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ struct PendingDecRef(NonNull<ffi::PyObject>);
unsafe impl Send for PendingDecRef {}

#[cfg(not(pyo3_disable_reference_pool))]
static POOL: Collector<PendingDecRef, 32> = Collector::new();
static POOL: Collector<PendingDecRef, 30> = Collector::new();

fn update_counts(_py: Python<'_>) {
for obj in POOL.collect() {
Expand Down

0 comments on commit 49647ce

Please sign in to comment.