Skip to content

Remove vortex-dtype dependency from vortex-compute - #6557

Closed
connortsui20 wants to merge 2 commits into
developfrom
ct/remove-dtype-from-compute
Closed

connortsui20 wants to merge 2 commits into
developfrom
ct/remove-dtype-from-compute

Conversation

@connortsui20

@connortsui20 connortsui20 commented Feb 17, 2026 •

Copy link
Copy Markdown
Member

Summary

Tracking Issue: #6547

Removes all instances of vortex-dtype imports for vortex-compute. This was not super hard since all of the existing imports from vortex-dtype are really just re-exports of other third-party crates.

Technically there are API changes but these are all generalizations / now the trait bounds on some of the compute is less restrictive than before. So I wouldn't really consider this a breaking change.

The one concern would the SIMD code that was already commented out / not used before. At some point we want to do that (see my failed attempt here: #5722) in general, but I guess today is not that day :(

Testing

N/A

@robert3005

Copy link
Copy Markdown
Contributor

At this point all of vortex-compute is dead code. Should we just delete this? Git always has history

@robert3005

Copy link
Copy Markdown
Contributor

ok, no, filter is being used. Should we move Filter into the vortex-array and delete the rest?

@connortsui20

Copy link
Copy Markdown
Member Author

We really should be using more from vortex-compute. For example there is a better take_scalar in there that we aren't using. That's the most obvious one, but there are other things that we were able to microbenchmark more easily in there

Comment thread vortex-compute/src/comparison/mod.rs Outdated
Comment on lines +6 to +7
use arrow_buffer::i256;
use half::f16;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i think we want to keep the wrapper types

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Should I just remove this comparison implementation for this then? We don't actually use it anywhere, and otherwise it would create a circular dependency when we merge vortex-dtype into vortex-array

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah I'm just going to remove it

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe we should keep the traits here but keep the impls in vortex-array? do we ever use vortex-compute directly instead of going thru vortex-array?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

or we can keep impls for primitive types here but we need to keep the impls for f16/i256 in vortex-array? idk, i'm also in the camp of not sure why we keep this crate around at all

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

as of right now, only vortex-array uses vortex-compute. I think the original idea was that we wanted to have something other stuff (vectors) could call into but now there's probably no reason to keep it.

@connortsui20
connortsui20 force-pushed the ct/remove-dtype-from-compute branch from 3d52c95 to e3ae281 Compare February 17, 2026 14:48
@connortsui20

Copy link
Copy Markdown
Member Author

Ok arguably we should completely delete this crate, but I believe until we can say that all of the optimized code we have has been migrated to vortex-array properly we should keep it around.

@connortsui20
connortsui20 force-pushed the ct/remove-dtype-from-compute branch from e3ae281 to 9a85905 Compare February 17, 2026 15:00
@robert3005

Copy link
Copy Markdown
Contributor

Was there a reason why we didn't use this code earlier? Git has the history even if you delete the code

@connortsui20

Copy link
Copy Markdown
Member Author

This was when we thought that we were moving towards vectors instead of arrays, so we didn't bother migrating the code to vortex-array since vortex-vector was already using vortex-compute.

@connortsui20

Copy link
Copy Markdown
Member Author

Discussed offline: we're just going to remove this and I'll create an issue to bring some of these optimizations back.

@connortsui20
connortsui20 deleted the ct/remove-dtype-from-compute branch February 17, 2026 15:10
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.

3 participants