Skip to content

feat: implement null collector#87

Open
shruti2522 wants to merge 4 commits into
boa-dev:mainfrom
shruti2522:null-collector
Open

feat: implement null collector#87
shruti2522 wants to merge 4 commits into
boa-dev:mainfrom
shruti2522:null-collector

Conversation

@shruti2522

Copy link
Copy Markdown
Contributor

fix #85

Added a no-op gc NullCollector for short lived contexts and benchmarking. It allocates into mempool3 but never runs a collection cycle, cleaning up only when dropped.

@shruti2522 shruti2522 marked this pull request as ready for review June 13, 2026 15:50

@nekevss nekevss left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing, then this should be good to merge.

}
}

#[cfg(test)]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this should be at the top of the file between the use statements and the const statements.

@nekevss

nekevss commented Jun 15, 2026

Copy link
Copy Markdown
Member

Also, one other thing is that we should have a null collector version of the branded API as that is the API we will probably be leaning into long term.

This should be fine for now though.

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.

Implement a null collector

2 participants