8000 Remove ExtDTypeInner by gatesn · Pull Request #6874 · vortex-data/vortex · GitHub
[go: up one dir, main page]

Skip to content

Remove ExtDTypeInner#6874

Merged
gatesn merged 4 commits intodevelopfrom
ngates/ext-dtype-inner
Mar 11, 2026
Merged

Remove ExtDTypeInner#6874
gatesn merged 4 commits intodevelopfrom
ngates/ext-dtype-inner

Conversation

@gatesn
Copy link
Contributor
@gatesn gatesn commented Mar 10, 2026

No description provided.

Signed-off-by: Nicholas Gates <nick@nickgates.com>
@gatesn gatesn added the changelog/chore A trivial change label Mar 10, 2026
@robert3005
Copy link
Contributor

What's the justification?

@gatesn
Copy link
Contributor Author
gatesn commented Mar 11, 2026

The vtable docs says so 😀

Real reason, is that this allows both the type erased and typed versions to defef to the same &Foo, which make a lot of APIs a lot simpler.

The cost is that &Foo is more expensive to clone since there is no arc. However any function that could require returning "self" should be implemented over the type erased version FooRef and the typed vtable should return Option. Therefore the clone is always performed over the erased version which contains an Arc.

Signed-off-by: Nicholas Gates <nick@nickgates.com>
@gatesn gatesn enabled auto-merge (squash) March 11, 2026 14:28
gatesn added 2 commits March 11, 2026 11:19
Signed-off-by: Nicholas Gates <nick@nickgates.com>
Signed-off-by: Nicholas Gates <nick@nickgates.com>
@gatesn gatesn merged commit af5e659 into develop Mar 11, 2026
93 of 95 checks passed
@gatesn gatesn deleted the ngates/ext-dtype-inner branch March 11, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/chore A trivial change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0