-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[stdlib] add benchmark for lcm and gcd #3041
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!sync
!sync |
e1202b4
to
3a53b3a
Compare
This comment was marked as resolved.
This comment was marked as resolved.
4b9a6c6
to
3e47510
Compare
1831c5c
to
afd0489
Compare
a33a17b
to
b2d5887
Compare
b2d5887
to
a5b833b
Compare
There's no need for `math.lcm` to take ownership of its arguments. Remove the `owned` keyword so the default argument convention of `borrowed` is used for the function arguments. This will also simplify #3041. MODULAR_ORIG_COMMIT_REV_ID: 782c1016c7fe287fc21115504e75098431fe80dd
a5b833b
to
397aed6
Compare
When importing this and playing with it (and adding a necessary |
397aed6
to
c0fd1d4
Compare
c0fd1d4
to
3052543
Compare
There's no need for `math.lcm` to take ownership of its arguments. Remove the `owned` keyword so the default argument convention of `borrowed` is used for the function arguments. This will also simplify #3041. MODULAR_ORIG_COMMIT_REV_ID: 782c1016c7fe287fc21115504e75098431fe80dd
Signed-off-by: Brian Grenier <[email protected]>
3052543
to
35fcdce
Compare
✅🟣 This contribution has been merged 🟣✅ Your pull request has been merged to the internal upstream Mojo sources. It will be reflected here in the Mojo repository on the nightly branch during the next Mojo nightly release, typically within the next 24-48 hours. We use Copybara to merge external contributions, click here to learn more. |
[External] [stdlib] Add benchmark for `lcm` and `gcd` Add benchmarks for `lcm` and `gcd` functions. Co-authored-by: bgreni <[email protected]> Closes #3041 MODULAR_ORIG_COMMIT_REV_ID: 3fe9e4a6321832878a49ad79d90593ef2969076b
Landed in 83bf0a3! Thank you for your contribution 🎉 |
[External] [stdlib] Add benchmark for `lcm` and `gcd` Add benchmarks for `lcm` and `gcd` functions. Co-authored-by: bgreni <[email protected]> Closes modularml#3041 MODULAR_ORIG_COMMIT_REV_ID: 3fe9e4a6321832878a49ad79d90593ef2969076b
[External] [stdlib] Add benchmark for `lcm` and `gcd` Add benchmarks for `lcm` and `gcd` functions. Co-authored-by: bgreni <[email protected]> Closes #3041 MODULAR_ORIG_COMMIT_REV_ID: 3fe9e4a6321832878a49ad79d90593ef2969076b
Add benchmarks for
lcm
andgcd
functions