]> Repositorios git - scryer-prolog.git/commit
fix large enum variant size difference warning of PermVarAllocation
authorSkgland <[email protected]>
Fri, 17 Apr 2026 23:29:28 +0000 (01:29 +0200)
committerSkgland <[email protected]>
Sat, 25 Apr 2026 14:19:53 +0000 (16:19 +0200)
commitff293a56e6ae4ddac9cbcf0da45a3a03b07b386b
tree49c0851423fcbd655ce51d27660988088a24525c
parentf7dc1d72f6f3c234c809d44c06f95853e4e967cf
fix large enum variant size difference warning of PermVarAllocation

by wrapping BranchNumber in an Arc.
PermVarAllocation::Done had size 208 and is now down to 32.
A Box rather than an Arc would be smaller, but it looks like BranchNumber/BranchDesignator are clones a bunch so I expect it to be beneficial to reduce allocations both of the Box itself as well as its content.
src/debray_allocator.rs
src/forms.rs
src/iterators.rs
src/machine/disjuncts.rs
src/variable_records.rs