Repository navigation
Refactor bitwise ops on booleans and remove duplicated Set from BinOp - #4728
Merged
Merged
Conversation
Signed-off-by: Jade Abraham <[email protected]>
Signed-off-by: Jade Abraham <[email protected]>
Signed-off-by: Jade Abraham <[email protected]>
1RyanK
approved these changes
Jul 23, 2025
1RyanK
left a comment
Contributor
There was a problem hiding this comment.
Looks good! One small question.
Signed-off-by: Jade Abraham <[email protected]>
Signed-off-by: Jade Abraham <[email protected]>
Set from BinOpSet from BinOp
e-kayrakli
approved these changes
Jul 23, 2025
e-kayrakli
approved these changes
Jul 23, 2025
e-kayrakli
approved these changes
Jul 24, 2025
ajpotts
approved these changes
Jul 24, 2025
ajpotts
added this pull request to the merge queue
Jul 24, 2025
ajpotts
pushed a commit
that referenced
this pull request
Jul 25, 2025
…Op (#4728) This PR makes a few changes to how bitwise and boolean ops are computed in the arkouda server. - Since the order of operands to bitwise ops does not matter, by using a helper function `doBoolBoolBitOp` and only calling it with operands in the same order (always `vector, scalar` or `vector, vector`) we can save some compilation time - The same `Set.set` was being recreated all over the place to determine if an op was an operator. This PR refactors that set into a common place so it does not get instantiated for all the generic combinations. - Makes a similar transformation with `Set.set` for `realOps` I consider this a general cleanup and consolidation of logic in BinOp/OperatorMsg, it also saves a little bit of time while compiling --------- Signed-off-by: Jade Abraham <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR makes a few changes to how bitwise and boolean ops are computed in the arkouda server.
doBoolBoolBitOpand only calling it with operands in the same order (alwaysvector, scalarorvector, vector) we can save some compilation timeSet.setwas being recreated all over the place to determine if an op was an operator. This PR refactors that set into a common place so it does not get instantiated for all the generic combinations.Set.setforrealOpsI consider this a general cleanup and consolidation of logic in BinOp/OperatorMsg, it also saves a little bit of time while compiling