Revert Built-in Call Optimization Workaround#922
Draft
christophercrouzet wants to merge 2 commits intonewton-physics:mainfrom
Draft
Revert Built-in Call Optimization Workaround#922christophercrouzet wants to merge 2 commits intonewton-physics:mainfrom
christophercrouzet wants to merge 2 commits intonewton-physics:mainfrom
Conversation
This is no longer necessary since the following changes in Warp: NVIDIA/warp#801
Contributor
📝 WalkthroughWalkthroughReplaced a local ctypes-based transform_mul helper with direct transform composition using the multiplication operator across builder internals; updated shape, joint, and body transform call sites. No public API changes. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Builder
participant Transform
rect rgba(190,220,255,0.25)
note over Builder: Previous flow
Builder->>Builder: call transform_mul(xform, other)
Builder->>Transform: ctypes/native dispatch
Transform-->>Builder: composed_transform
Builder->>Builder: apply composed_transform
end
rect rgba(200,255,200,0.25)
note over Builder: New flow
Builder->>Transform: xform * other
Transform-->>Builder: composed_transform (operator overload)
Builder->>Builder: apply composed_transform
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 900000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Member
Author
|
Depends on #921. |
Member
|
I'm not sure this is ready yet, there is still an up to 2x slowdown shown by the benchmarks for the model initialization. |
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.
Description
This is reverting the workaround introduced in #266.
It's no longer necessary since the following changes in Warp: NVIDIA/warp#801.
Summary by CodeRabbit