Skip to content

refactor(data): remove the virtual destructor of raw_poly_vector - #6

Merged
codethinki merged 1 commit into
masterfrom
refactor/poly-vector-destructor
Oct 4, 2026
Merged

codethinki merged 1 commit into
masterfrom
refactor/poly-vector-destructor

Conversation

@codethinki

Copy link
Copy Markdown
Owner

Nothing derives from raw_poly_vector. Without the vtable pointer:

  • raw_poly_vector<int, double>: 24 -> 16 bytes
  • poly_vector<int, double>: 32 -> 24 bytes
  • union_find: 40 -> 32 bytes

Nothing derives from it, the vtable pointer only made every poly_vector and
union_find 8 bytes larger.
@codethinki
codethinki merged commit 768cd60 into master Oct 4, 2026
6 checks passed
@codethinki
codethinki deleted the refactor/poly-vector-destructor branch October 4, 2026 18:43
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.

1 participant