Skip to content

Commit e42a3ca

Browse files
committed
Big overhaul part 1 - replace PyRc with manual RefCount + WeakRefList
1 parent 9fa5c5a commit e42a3ca

File tree

29 files changed

+1126
-339
lines changed

29 files changed

+1126
-339
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/src/hash.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ pub fn hash_bigint(value: &BigInt) -> PyHash {
169169
}
170170

171171
#[inline(always)]
172-
fn fix_sentinel(x: PyHash) -> PyHash {
172+
pub fn fix_sentinel(x: PyHash) -> PyHash {
173173
if x == SENTINEL {
174174
-2
175175
} else {

common/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ pub mod cmp;
99
pub mod encodings;
1010
pub mod float_ops;
1111
pub mod hash;
12+
pub mod linked_list;
1213
pub mod lock;
1314
pub mod rc;
15+
pub mod refcount;
1416
pub mod static_cell;
1517
pub mod str;
1618

0 commit comments

Comments
 (0)