Skip to content

Comments

refactor(pumpkin-core): Only initialise arena allocator when first nogood is inserted + decrease memory limit#366

Merged
maartenflippo merged 2 commits intomainfrom
refactor/arena-allocator
Feb 11, 2026
Merged

refactor(pumpkin-core): Only initialise arena allocator when first nogood is inserted + decrease memory limit#366
maartenflippo merged 2 commits intomainfrom
refactor/arena-allocator

Conversation

@ImkoMarijnissen
Copy link
Contributor

We used to allocate the memory of the arena allocator as soon as it was created. This led to unnecessary overhead when posting the FlatZinc constraints and/or when using a resolver that does not use nogoods.

Additionally, we used to preallocate space for 250.000.000 PredicateIds (i.e., 1000MB for 4 byte structs: $\frac{1.000 \times 1.000.000}{4} = 250.000.000$); this PR reduces the default from 1000MB to 25MB, resulting in 12.500.000 million PredicateIds being preallocated.

@maartenflippo maartenflippo merged commit 61ad1f4 into main Feb 11, 2026
9 checks passed
@maartenflippo maartenflippo deleted the refactor/arena-allocator branch February 11, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants