Skip to content

Arena-allocate physical operators#16911

Merged
Mytherin merged 5 commits intoduckdb:mainfrom
taniabogatsch:arena-physical-ops
Apr 3, 2025
Merged

Arena-allocate physical operators#16911
Mytherin merged 5 commits intoduckdb:mainfrom
taniabogatsch:arena-physical-ops

Conversation

@taniabogatsch
Copy link
Contributor

Use placement new to arena-allocate the physical operators in the physical plan. This change is another PR in a series of PRs / refactoring to decrease DuckDB's allocation overhead during planning/etc.

Currently, each operator still requires calling its destructor. Ideally, we slowly change this on a per-operator basis with a series of (small) PRs. Thus, this PR introduces a new PhysicalOperatorMemoryType to determine whether we call the respective destructor when destroying the physical plan.

@taniabogatsch taniabogatsch requested a review from Maxxen March 31, 2025 14:04
@duckdb-draftbot duckdb-draftbot marked this pull request as draft April 1, 2025 09:18
@taniabogatsch taniabogatsch marked this pull request as ready for review April 1, 2025 09:20
@duckdb-draftbot duckdb-draftbot marked this pull request as draft April 2, 2025 08:18
@taniabogatsch taniabogatsch marked this pull request as ready for review April 2, 2025 09:42
@Mytherin Mytherin merged commit cf02bff into duckdb:main Apr 3, 2025
32 checks passed
@Mytherin
Copy link
Collaborator

Mytherin commented Apr 3, 2025

Thanks!

@taniabogatsch taniabogatsch deleted the arena-physical-ops branch April 7, 2025 08:13
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 15, 2025
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 15, 2025
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 16, 2025
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 16, 2025
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 17, 2025
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